summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/non-automated/infinite-sibling-and-nested.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/workers/non-automated/infinite-sibling-and-nested.js')
-rw-r--r--testing/web-platform/tests/workers/non-automated/infinite-sibling-and-nested.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/non-automated/infinite-sibling-and-nested.js b/testing/web-platform/tests/workers/non-automated/infinite-sibling-and-nested.js
new file mode 100644
index 0000000000..cf7b794a41
--- /dev/null
+++ b/testing/web-platform/tests/workers/non-automated/infinite-sibling-and-nested.js
@@ -0,0 +1,8 @@
+function createWorker() {
+ var worker = new Worker('infinite-nested.js?' + Math.random());
+ worker.onmessage = function(e) {
+ postMessage(e.data);
+ createWorker();
+ }
+}
+createWorker(); \ No newline at end of file