1 2 3 4 5 6 7 8 9 10
var count = 0; function f() { if (count++ < 10) { interruptIf(true); } assertEq((1).toLocaleString(), "1"); return true; } setInterruptCallback(f); f();