bug1942881.js (266B)
1 // |jit-test| --no-threads; --fast-warmup 2 3 function handler() { return true; } 4 setInterruptCallback(handler); 5 6 function foo(i) { 7 let e = "12a".match("2*[a]"); 8 interruptIf(true); 9 if (i >= 50) { 10 return e[0]; 11 } 12 } 13 for (var i = 0; i < 100; i++) { 14 foo(i); 15 }