summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testApplyInterpretLowered.js
blob: e35659f9e82830ed556c08f009553b302c598406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

/* Read correct return value when the interpreter pops a lowered call/apply. */

function recompile() {}

function foo() {
  if (arguments[0] == 9)
    recompile();
  return arguments[0];
}
function bar() {
  for (var i = 0; i < 10; i++)
    assertEq(foo.apply(null, [i]), i);
}
bar();