diff options
Diffstat (limited to 'dom/workers/test/WorkerDebugger.initialize_worker.js')
-rw-r--r-- | dom/workers/test/WorkerDebugger.initialize_worker.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/workers/test/WorkerDebugger.initialize_worker.js b/dom/workers/test/WorkerDebugger.initialize_worker.js new file mode 100644 index 0000000000..93ded58906 --- /dev/null +++ b/dom/workers/test/WorkerDebugger.initialize_worker.js @@ -0,0 +1,9 @@ +"use strict"; + +var worker = new Worker("WorkerDebugger.initialize_childWorker.js"); +worker.onmessage = function(event) { + postMessage("child:" + event.data); +}; + +debugger; +postMessage("worker"); |