electron/spec/fixtures/workers/shared_worker_node.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
185 B
JavaScript
Raw Normal View History

2017-03-15 11:07:28 +00:00
self.onconnect = function (event) {
const port = event.ports[0];
2017-03-15 11:07:28 +00:00
port.start();
port.postMessage([typeof process, typeof setImmediate, typeof global, typeof Buffer].join(' '));
};