mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
v8: move serdes to internalBinding
PR-URL: https://github.com/nodejs/node/pull/22161 Refs: https://github.com/nodejs/node/issues/22160 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
parent
d7e1847872
commit
cf3bb593de
@ -16,10 +16,11 @@
|
||||
|
||||
const { Buffer } = require('buffer');
|
||||
const { ERR_INVALID_ARG_TYPE } = require('internal/errors').codes;
|
||||
const { internalBinding } = require('internal/bootstrap/loaders');
|
||||
const {
|
||||
Serializer: _Serializer,
|
||||
Deserializer: _Deserializer
|
||||
} = process.binding('serdes');
|
||||
} = internalBinding('serdes');
|
||||
const { copy } = process.binding('buffer');
|
||||
const { objectToString } = require('internal/util');
|
||||
const { FastBuffer } = require('internal/buffer');
|
||||
|
@ -501,4 +501,4 @@ void Initialize(Local<Object> target,
|
||||
} // anonymous namespace
|
||||
} // namespace node
|
||||
|
||||
NODE_BUILTIN_MODULE_CONTEXT_AWARE(serdes, node::Initialize)
|
||||
NODE_MODULE_CONTEXT_AWARE_INTERNAL(serdes, node::Initialize)
|
||||
|
Loading…
Reference in New Issue
Block a user