blob: d3f7875f6c7b6cd8277314260c031e33a154bf02 [file] [edit]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
const mathToString = Math.toString;
function foo() {
return mathToString();
}
let before = foo();
for (let i = 0; i < testLoopCount; i++) {
foo();
}
let after = foo();
shouldBe(before, after);