michael@0: michael@0: /* Read correct return value when the interpreter pops a lowered call/apply. */ michael@0: michael@0: function recompile() {} michael@0: michael@0: function foo() { michael@0: if (arguments[0] == 9) michael@0: recompile(); michael@0: return arguments[0]; michael@0: } michael@0: function bar() { michael@0: for (var i = 0; i < 10; i++) michael@0: assertEq(foo.apply(null, [i]), i); michael@0: } michael@0: bar();