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

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