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