blob: af3c802f459aa4e373d06eb05355cf286088c6da [file] [edit]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test0()
{
return "A".charAt(0);
}
noInline(test0);
function test1()
{
return "TEST".charCodeAt(3);
}
noInline(test1);
for (let i = 0; i < testLoopCount; ++i) {
shouldBe(test0(), "A");
shouldBe(test1(), 84);
}