blob: 770b451b8a90d09494df4c9a0798465123c27ec1 [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;