blob: 86933eb741a0932a7d3d1c4d8453ecd8ed21b727 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
noInline(shouldBe);
function test(value)
{
return value[2];
}
noInline(test);
for (var i = 0; i < 1e4; ++i) {
shouldBe(test("Hello"), 'l');
shouldBe(test("World"), 'r');
shouldBe(test("Nice"), 'c');
}