Backed out changeset 06f41c22f3a6 (bug 1888460) for causing linux xpcshell failures...
[gecko.git] / dom / workers / test / bug998474_worker.js
blob6f6b6a921251a2c31da0350bb983bca5933db132
1 self.addEventListener("connect", function (e) {
2   var port = e.ports[0];
3   port.onmessage = function (msg) {
4     // eslint-disable-next-line no-eval
5     port.postMessage(eval(msg.data));
6   };
7 });