blob: 31b0051770d2f37ac294d8572b78c1e7769297ae [file] [edit]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test(a, b, c, d, e) {
return a + b + c + d + e;
}
function ok()
{
"use strict";
globalThis.escape = arguments;
return test.apply(undefined, arguments);
}
noInline(ok);
for (var i = 0; i < 1e4; ++i)
shouldBe(ok(1, 2, 3, 4, 5), 15);