blob: c3962babff9be2bbb3389218cdf805effe627bb9 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test(string, index) {
return string.codePointAt(index);
}
noInline(test);
for (var i = 0; i < 1e6; ++i)
shouldBe(test("", -1), undefined);