6 lines
179 B
JavaScript
6 lines
179 B
JavaScript
|
self.onconnect = function (event) {
|
||
|
let port = event.ports[0]
|
||
|
port.start()
|
||
|
port.postMessage([typeof process, typeof setImmediate, typeof global, typeof Buffer].join(' '))
|
||
|
}
|