diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/basic/testApplyInterpretLowered.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/basic/testApplyInterpretLowered.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,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();