blob: fd614a2b9feaab9c60fe6e5d6622ce2456f03154 [file] [log] [blame]
function bar(f) {
throw f;
}
noInline(bar);
function foo(a) {
var x = a + 1;
for (;;) {
bar(function() { return x; });
}
}
noInline(foo);
for (var i = 0; i < 10000; ++i) {
try {
foo(i);
} catch (f) {
var result = f();
if (result != i + 1)
throw "Error: bad result for i = " + i + ": " + result;
}
}