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