summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/bug998474_worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/bug998474_worker.js')
-rw-r--r--dom/workers/test/bug998474_worker.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/workers/test/bug998474_worker.js b/dom/workers/test/bug998474_worker.js
new file mode 100644
index 0000000000..c9c85db83b
--- /dev/null
+++ b/dom/workers/test/bug998474_worker.js
@@ -0,0 +1,6 @@
+self.addEventListener("connect", function (e) {
+ var port = e.ports[0];
+ port.onmessage = function (msg) {
+ port.postMessage(eval(msg.data));
+ };
+});