summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testApplyInterpretLowered2.js
blob: 0564ead0b658264b7ee862736192a0f3b45c9280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Make sure the interpreter can pop lowered frames pushed by CompileFunction. */

function recompile() {}

function bar() {
  for (var i = 0; i < 50; i++) {
    var foo = new Function("recompile(arguments[0] + " + i + "); return arguments[0]");
    assertEq(foo.apply(null, [i]), i);
  }
}
bar();