blob: b927dcbde22945a05848c2914c2c9b26d41a8f99 [file] [log] [blame]
function bar(x)
{
var args = arguments;
var result = 0;
for (var i = 0; i < args.length; ++i)
result += args[i];
return result;
}
var result = 0;
for (var i = 0; i < 100000; ++i)
result += bar(i, i + 1, i + 2, i + 3);
if (result != 20000400000)
throw "Bad result: " + result;