diff options
Diffstat (limited to 'dom/workers/test/WorkerDebuggerGlobalScope.createSandbox_sandbox.js')
-rw-r--r-- | dom/workers/test/WorkerDebuggerGlobalScope.createSandbox_sandbox.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/workers/test/WorkerDebuggerGlobalScope.createSandbox_sandbox.js b/dom/workers/test/WorkerDebuggerGlobalScope.createSandbox_sandbox.js new file mode 100644 index 000000000..f94d65062 --- /dev/null +++ b/dom/workers/test/WorkerDebuggerGlobalScope.createSandbox_sandbox.js @@ -0,0 +1,9 @@ +"use strict"; + +self.addEventListener("message", function(event) { + switch (event.data) { + case "ping": + self.postMessage("pong"); + break; + } +}); |