src: multi-isolate support for NodePlatform
These commits are taken from Ayo, where they are used for Worker support in the NodePlatform
implementation. Since https://github.com/nodejs/node/issues/16658 was opened on this repo, I decided I might as well PR them here as well since I’m pretty certain it would help resolve that issue. No hard feelings if this is rejected.
(NB: These already have been reviewed by Node.js collaborators. This should still not be landed without an explicit +1 from a collaborator in this pretty different context.)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
src
fyi @matthewloring @jasnell