blob: 671942efbbdfca44003ae2e6c7b8e37103bc0a88 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
noInline(shouldBe);
function target(func)
{
return new func();
}
noInline(target);
for (var i = 0; i < 1e4; ++i)
shouldBe(target(Array).length, 0);