summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/bug998474_worker.js
blob: 6f6b6a921251a2c31da0350bb983bca5933db132 (plain)
1
2
3
4
5
6
7
self.addEventListener("connect", function (e) {
  var port = e.ports[0];
  port.onmessage = function (msg) {
    // eslint-disable-next-line no-eval
    port.postMessage(eval(msg.data));
  };
});