summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/clearTimeouts_worker.js
blob: 6e6198c6b543547f7a41cb807c29988d1aedbcbd (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);
}