tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

testApplyInterpretLowered.js (287B)


      1 /* Read correct return value when the interpreter pops a lowered call/apply. */
      2 
      3 function recompile() {}
      4 
      5 function foo() {
      6  if (arguments[0] == 9)
      7    recompile();
      8  return arguments[0];
      9 }
     10 function bar() {
     11  for (var i = 0; i < 10; i++)
     12    assertEq(foo.apply(null, [i]), i);
     13 }
     14 bar();