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 0000000000..d2de6de924 --- /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; + } +}); |