src: split ownsProcessState off isMainThread
Embedders may want to control whether a Node.js instance
controls the current process, similar to what we currently
have with Worker
s.
Previously, the isMainThread
flag had a bit of a double usage,
both for indicating whether we are (not) running a Worker and
whether we can modify per-process state.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines