blob: 6c5f288cb20854468c5e0fffd7fb05b72c733456 [file] [log] [blame] [edit]
function shouldBe(actual, expected) {
if (actual !== expected) {
throw new Error("bad value: " + actual);
}
}
function test(start, end) {
return "/assets/nanona".substring(0, Infinity) === "/assets/nanona";
}
noInline(test);
var count = 0;
for (var i = 0; i < testLoopCount; ++i) {
if (test()) {
++count;
}
}
shouldBe(count, testLoopCount);