blob: 0964ccc2b63b6ebf3ffed1b28a098399e2c46cc9 [file] [log] [blame]
function bar()
{
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 < 10000; ++i)
result += bar(i, i + 1, i + 2, i + 3);
if (result != 200040000)
throw "Bad result: " + result;