blob: 6014c9137d7be8c80315579c1421fc46ffa6c0e1 [file] [log] [blame]
function bar()
{
var result = 0;
for (var i = 0; i < arguments.length; ++i)
result += arguments[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;