electron/spec/fixtures/workers/shared_worker_node.js
2020-03-20 13:28:31 -07:00

5 lines
185 B
JavaScript

self.onconnect = function (event) {
const port = event.ports[0];
port.start();
port.postMessage([typeof process, typeof setImmediate, typeof global, typeof Buffer].join(' '));
};