diff options
Diffstat (limited to 'dom/workers/test/clearTimeoutsImplicit_worker.js')
-rw-r--r-- | dom/workers/test/clearTimeoutsImplicit_worker.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/workers/test/clearTimeoutsImplicit_worker.js b/dom/workers/test/clearTimeoutsImplicit_worker.js new file mode 100644 index 0000000000..dfb8d0f6ce --- /dev/null +++ b/dom/workers/test/clearTimeoutsImplicit_worker.js @@ -0,0 +1,11 @@ +var count = 0; +function timerFunction() { + if (++count == 30) { + postMessage("ready"); + while (true) {} + } +} + +for (var i = 0; i < 10; i++) { + setInterval(timerFunction, 500); +} |