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