summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/clearTimeoutsImplicit_worker.js
blob: dfb8d0f6ce7675e85ff3af3de3d6cfb2b09a65c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
var count = 0;
function timerFunction() {
  if (++count == 30) {
    postMessage("ready");
    while (true) {}
  }
}

for (var i = 0; i < 10; i++) {
  setInterval(timerFunction, 500);
}