diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2020-04-21 21:57:16 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2020-07-18 06:23:21 +0300 |
commit | 7a447bcd54f5e153d14da377963541349d7bda09 (patch) | |
tree | f2a91589e92c88d10c2a73919847a5c056599089 /src/string_decoder.cc | |
parent | b1c3909bd766327a569c2e4279a4670454f3f9db (diff) |
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/string_decoder.cc')
-rw-r--r-- | src/string_decoder.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/string_decoder.cc b/src/string_decoder.cc index 6ec84e0e11e..a25c9039870 100644 --- a/src/string_decoder.cc +++ b/src/string_decoder.cc @@ -3,6 +3,7 @@ #include "env-inl.h" #include "node_buffer.h" +#include "node_external_reference.h" #include "string_bytes.h" #include "util.h" @@ -322,7 +323,15 @@ void InitializeStringDecoder(Local<Object> target, } // anonymous namespace +void RegisterStringDecoderExternalReferences( + ExternalReferenceRegistry* registry) { + registry->Register(DecodeData); + registry->Register(FlushData); +} + } // namespace node NODE_MODULE_CONTEXT_AWARE_INTERNAL(string_decoder, node::InitializeStringDecoder) +NODE_MODULE_EXTERNAL_REFERENCE(string_decoder, + node::RegisterStringDecoderExternalReferences) |