js/src/jit-test/tests/basic/testApplyInterpretLowered.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:bde887cd5955
1
2 /* Read correct return value when the interpreter pops a lowered call/apply. */
3
4 function recompile() {}
5
6 function foo() {
7 if (arguments[0] == 9)
8 recompile();
9 return arguments[0];
10 }
11 function bar() {
12 for (var i = 0; i < 10; i++)
13 assertEq(foo.apply(null, [i]), i);
14 }
15 bar();

mercurial