summaryrefslogtreecommitdiff
path: root/dom/workers/test/WorkerDebugger_sharedWorker.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/WorkerDebugger_sharedWorker.js')
-rw-r--r--dom/workers/test/WorkerDebugger_sharedWorker.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/workers/test/WorkerDebugger_sharedWorker.js b/dom/workers/test/WorkerDebugger_sharedWorker.js
new file mode 100644
index 0000000000..5ad97d4c50
--- /dev/null
+++ b/dom/workers/test/WorkerDebugger_sharedWorker.js
@@ -0,0 +1,11 @@
+"use strict";
+
+self.onconnect = function (event) {
+ event.ports[0].onmessage = function (event) {
+ switch (event.data) {
+ case "close":
+ close();
+ break;
+ }
+ };
+};