blob: f5733d0981dac78b270dbec5a38d2ba0fa61e99a [file] [log] [blame]
function foo(o) {
var count = 0;
for (let p in o) {
if (o[p])
count++;
}
return count;
}
noInline(foo);
var total = 0;
for (let j = 0; j < 100000; ++j)
total += foo(new Error);
if (total != 300000)
throw new Error("Bad result: " + total);