Skip to content

internal: add internalBindings for isolation of C++ bindings

Rodrigo Muino Tomonari requested to merge github/fork/bmeck/internalBinding into master

This commit adds a method to internal/process that allows access to bindings that are not intended to be used by user code. It has a separate cache object and modlist in order to avoid collisions.

You can use NODE_MODULE_CONTEXT_AWARE_INTERNAL to register a C++ module as an internal.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

internal

Merge request reports

Loading