blob: 86c4c1c77b538ef9cad082274c576fcfc34b40a8 [file] [log] [blame]
function foo(string) {
var x = 42;
var result = eval(string);
for (var i = 0; i < 100000; ++i)
result++;
return result;
}
noInline(foo);
for (var i = 0; i < 200; ++i) {
var result = foo("x + " + i);
if (result != 42 + i + 100000)
throw "Error: bad result: " + result;
}