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 000000000..a14ed2810
--- /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(e) {
+ port.postMessage(eval(e.data));
+ };
+});