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>2021-03-29 19:20:08 +0300
committerlegendecas <legendecas@gmail.com>2021-04-08 07:02:01 +0300
commit6cb314bbe5ee5c9af3c111516fb7f7689c10ecda (patch)
tree6f99c883997da9f179f396d388dc81ff765c92dc /src/node_binding.cc
parent9cfb418e1fca3a796e4bf782d7ac4a348a042dec (diff)
bootstrap: print information for snapshot at environment exit in debug
Print information relevant to snapshot building at the environment exit when NODE_DEBUG_NATIVE is set to include mksnapshot. This helps us understand what need to be fixed to build a snapshot when a script is run to completion. PR-URL: https://github.com/nodejs/node/pull/37967 Refs: https://github.com/nodejs/node/issues/37476 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_binding.cc')
-rw-r--r--src/node_binding.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_binding.cc b/src/node_binding.cc
index 6c7ab4b21ed..b5e42af7951 100644
--- a/src/node_binding.cc
+++ b/src/node_binding.cc
@@ -582,6 +582,7 @@ void GetInternalBinding(const FunctionCallbackInfo<Value>& args) {
node_module* mod = FindModule(modlist_internal, *module_v, NM_F_INTERNAL);
if (mod != nullptr) {
exports = InitModule(env, mod, module);
+ env->internal_bindings.insert(mod);
} else if (!strcmp(*module_v, "constants")) {
exports = Object::New(env->isolate());
CHECK(