blob: 0d91dd4178b316898f656157cd42fb18eec4aa04 [file] [log] [blame] [edit]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error("bad value: " + actual);
}
function test1() {
return "/assets/omfg".substring(0, 8) === "/assets/";
}
noInline(test1);
var count = 0;
for (var i = 0; i < testLoopCount; ++i) {
if (test1())
++count;
}
shouldBe(count, testLoopCount);