blob: 8580820c74491ee8dccd3a91d6e88f2bffe1ef66 [file] [log] [blame]
function foo(x) {
var tmp = x + 1;
return tmp + arguments[0];
}
noInline(foo);
for (var i = 0; i < 10000; ++i) {
var result = foo(i);
if (result != i + i + 1)
throw "Error: bad result: " + result;
}
var result = foo(4.5);
if (result != 4.5 + 4.5 + 1)
throw "Error: bad result at end: " + result;