Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2020-04-21 02:32:31 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2020-07-18 06:23:15 +0300
commit0b8ae5f2cd45a5fcbe46dc7fa7cdae93386e23f0 (patch)
tree21e15255c9f75ab5a872af17bc9897336e94499a /src/node_binding.cc
parent7ecb285842361de721a9d7c7d2a0535170b132dd (diff)
src: snapshot loaders
This runs `lib/internal/bootstrap/loaders.js` before creating the builtin snapshot and deserialize the loaders from the snapshot in deserialization mode. PR-URL: https://github.com/nodejs/node/pull/32984 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'src/node_binding.cc')
-rw-r--r--src/node_binding.cc11
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)