blob: bfb76d5092cc8e927d1d989a1cc5c21ab37aadbe [file] [edit]
function foo(o, i) {
return o[i]();
}
noInline(foo);
for (var i = 0; i < testLoopCount; ++i) {
var result = foo([function() { return 42; }], 0);
if (result != 42)
throw "Error: bad result: " + result;
}
var result = foo([function() { return 43; }], 0);
if (result != 43)
throw "Error: bad result at end: " + result;