gecko/dom/workers/test/bug998474_worker.js

7 lines
150 B
JavaScript

self.addEventListener("connect", function(e) {
var port = e.ports[0];
port.onmessage = function(e) {
port.postMessage(eval(e.data));
};
});