summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/bug1104064_worker.js
blob: 02b802a8261a930d69815bd81160f5d233f0038f (plain)
1
2
3
4
5
6
7
8
9
10
onmessage = function () {
  var counter = 0;
  var id = setInterval(function () {
    ++counter;
    if (counter == 2) {
      clearInterval(id);
      postMessage("done");
    }
  }, 0);
};