diff options
Diffstat (limited to 'src/node_binding.cc')
-rw-r--r-- | src/node_binding.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/node_binding.cc b/src/node_binding.cc index 80ab4e69e11..4dbf56b99a3 100644 --- a/src/node_binding.cc +++ b/src/node_binding.cc @@ -1,7 +1,8 @@ #include "node_binding.h" -#include "node_errors.h" #include <atomic> #include "env-inl.h" +#include "node_errors.h" +#include "node_external_reference.h" #include "node_native_module_env.h" #include "util.h" @@ -676,5 +677,13 @@ void RegisterBuiltinModules() { #undef V } +void RegisterExternalReferences(ExternalReferenceRegistry* registry) { + registry->Register(GetLinkedBinding); + registry->Register(GetInternalBinding); +} + } // namespace binding } // namespace node + +NODE_MODULE_EXTERNAL_REFERENCE(binding, + node::binding::RegisterExternalReferences) |