diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2020-04-22 02:57:16 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2020-07-18 11:23:21 +0800 |
commit | 7a447bcd54f5e153d14da377963541349d7bda09 (patch) | |
tree | f2a91589e92c88d10c2a73919847a5c056599089 /src/handle_wrap.cc | |
parent | b1c3909bd766327a569c2e4279a4670454f3f9db (diff) | |
download | node-new-7a447bcd54f5e153d14da377963541349d7bda09.tar.gz |
src: snapshot node
This runs `lib/internal/bootstrap/node.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/handle_wrap.cc')
-rw-r--r-- | src/handle_wrap.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/handle_wrap.cc b/src/handle_wrap.cc index 4e039d5dbf..e573698446 100644 --- a/src/handle_wrap.cc +++ b/src/handle_wrap.cc @@ -22,6 +22,7 @@ #include "handle_wrap.h" #include "async_wrap-inl.h" #include "env-inl.h" +#include "node_external_reference.h" #include "util-inl.h" namespace node { @@ -152,5 +153,15 @@ Local<FunctionTemplate> HandleWrap::GetConstructorTemplate(Environment* env) { return tmpl; } +void HandleWrap::RegisterExternalReferences( + ExternalReferenceRegistry* registry) { + registry->Register(HandleWrap::Close); + registry->Register(HandleWrap::HasRef); + registry->Register(HandleWrap::Ref); + registry->Register(HandleWrap::Unref); +} } // namespace node + +NODE_MODULE_EXTERNAL_REFERENCE(handle_wrap, + node::HandleWrap::RegisterExternalReferences) |