diff --git a/lib/v8.js b/lib/v8.js index 0d9ffc6033ced2..bca70996209d95 100644 --- a/lib/v8.js +++ b/lib/v8.js @@ -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'); diff --git a/src/node_serdes.cc b/src/node_serdes.cc index 5de0ddd81909b0..490d2c325ace97 100644 --- a/src/node_serdes.cc +++ b/src/node_serdes.cc @@ -501,4 +501,4 @@ void Initialize(Local target, } // anonymous namespace } // namespace node -NODE_BUILTIN_MODULE_CONTEXT_AWARE(serdes, node::Initialize) +NODE_MODULE_CONTEXT_AWARE_INTERNAL(serdes, node::Initialize)