tenfourfox/dom/workers/test/clearTimeouts_worker.js

13 lines
200 B
JavaScript
Raw Normal View History

2017-04-19 07:56:45 +00:00
var count = 0;
function timerFunction() {
if (++count == 30) {
close();
postMessage("ready");
while (true) { }
}
}
for (var i = 0; i < 10; i++) {
setInterval(timerFunction, 500);
}