blob: f44da1699e6bd0d2d3f835f6230e3b773337aacf [file] [log] [blame] [edit]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test(array) {
return "hello" + array + "ok";
}
noInline(test);
var array = [42];
for (var i = 0; i < 1e6; ++i)
shouldBe(test(array), `hello42ok`);