js/src/jit-test/tests/jaeger/bug687768.js

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

     2 expected = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,';
     3 function slice(a, b) {
     4   return expected;
     5 }
     6 function f() {
     7   var length = 4;
     8   var index = 0;
     9   function get3() {
    10     if (length - index < 3)
    11       return null;
    12     return slice(index, ++index);
    13   }
    14   var bytes = null;
    15   while (bytes = get3()) {  }
    16 }
    17 f();

mercurial