test: Node integration in web workers

This commit is contained in:
Cheng Zhao 2017-03-15 20:07:28 +09:00
parent ab83aa0bfd
commit 033aa16e04
8 changed files with 77 additions and 1 deletions

View file

@ -0,0 +1,5 @@
self.onconnect = function (event) {
let port = event.ports[0]
port.start()
port.postMessage([typeof process, typeof setImmediate, typeof global, typeof Buffer].join(' '))
}