diff options
Diffstat (limited to 'dom/workers/test/jsversion_worker.js')
-rw-r--r-- | dom/workers/test/jsversion_worker.js | 14 |
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); +} |