Skip to content

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 Workers.

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), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading