blob: a17825394e6582ba5bd26b16f97dc63e72cf5b86 [file] [log] [blame]
function foo(i) {
return arguments[i];
}
noInline(foo);
for (var i = 0; i < 10000; ++i) {
var thingies = [i % 4, "one", 2, "three"];
var result = foo(i % 4, "one", 2, "three");
if (result != thingies[i % 4])
throw "Error: bad result for i = " + i + ": " + result;
}