diff options
Diffstat (limited to 'dom/workers/test/WorkerDebugger.postMessage_debugger.js')
-rw-r--r-- | dom/workers/test/WorkerDebugger.postMessage_debugger.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/workers/test/WorkerDebugger.postMessage_debugger.js b/dom/workers/test/WorkerDebugger.postMessage_debugger.js new file mode 100644 index 0000000000..14236a4430 --- /dev/null +++ b/dom/workers/test/WorkerDebugger.postMessage_debugger.js @@ -0,0 +1,9 @@ +"use strict"; + +this.onmessage = function (event) { + switch (event.data) { + case "ping": + postMessage("pong"); + break; + } +}; |