summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/jsversion_worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/jsversion_worker.js')
-rw-r--r--dom/workers/test/jsversion_worker.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/workers/test/jsversion_worker.js b/dom/workers/test/jsversion_worker.js
new file mode 100644
index 000000000..c66b72977
--- /dev/null
+++ b/dom/workers/test/jsversion_worker.js
@@ -0,0 +1,14 @@
+onmessage = function(evt) {
+ if (evt.data != 0) {
+ var worker = new Worker('jsversion_worker.js');
+ worker.onmessage = function(evt) {
+ postMessage(evt.data);
+ }
+
+ worker.postMessage(evt.data - 1);
+ return;
+ }
+
+ let foo = 'bar';
+ postMessage(true);
+}