blob: 22d0cae085596c249dae70b292178d14a7630a5a [file] [log] [blame]
function foo(x, y) {
var z = x;
for (var i = 0; i < 3; ++i)
z += y;
return z;
}
eval("// Don't compile me");
var result = 0;
for (var i = 0; i < 1000000; ++i)
result += foo(1000000000, 1000000000);
if (result != 4000000000000000)
throw "Error: bad result: " + result;