blob: 4fbc954785354d8804ddf81d4025a7697eb02ca8 [file] [log] [blame]
function foo(eval, 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(function() { return 42 + i; }, "x + " + i);
if (result != 42 + i + 100000)
throw "Error: bad result: " + result;
}