blob: c8ee317044bee382365edd51ba107571ee3ca7c6 [file] [log] [blame]
function foo(index) {
return arguments[index];
}
noInline(foo);
for (var i = 0; i < 100000; ++i) {
var result = foo(1, 42);
if (result != 42)
throw "Error: bad result in loop: " + result;
}
var result = foo(1);
if (result !== void 0)
throw "Error: bad result at end: " + result;