summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/non-automated/infinite-sibling-and-nested.js
blob: cf7b794a414da43e968de0f86e3c28b55a14e502 (plain)
1
2
3
4
5
6
7
8
function createWorker() {
  var worker = new Worker('infinite-nested.js?' + Math.random());
  worker.onmessage = function(e) {
    postMessage(e.data);
    createWorker();
  }
}
createWorker();