Skip to content

src: make a Environment-independent proxy class for NativeModuleLoader

This patch splits NativeModuleLoader into two parts - a singleton that only relies on v8 and node::Mutex and a proxy class for the singleton (NativeModuleEnv) that provides limited access to the singleton as well as C++ bindings for the Node.js binary. NativeModuleLoader is then no longer aware of Environment.

This is split out of https://github.com/nodejs/node/pull/27135

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading