blob: a26055694fe48abe224dc70b44424325a0247001 [file] [log] [blame]
"use strict";
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function inlined(cond)
{
if (!cond)
throw new Error("OK");
}
function test()
{
try {
inlined.apply(undefined, arguments);
} catch (error) {
shouldBe(String(error), `Error: OK`);
}
}
noInline(test);
for (var i = 0; i < 1e7; ++i) {
test(1, 2, 3);
}
test(0, 2, 3);
test(0, 2, 3);
test(0, 2, 3);
test(0, 2, 3);
test(0, 2, 3);