Skip to content

Commit 9f7bb5c

Browse files
daeyeontargos
authored andcommitted
lib: disambiguate native module to binding
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com> PR-URL: #45673 Refs: #44135 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 353339a commit 9f7bb5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/bootstrap/node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ process._exiting = false;
128128
}
129129

130130
// process.config is serialized config.gypi
131-
const nativeModule = internalBinding('builtins');
131+
const binding = internalBinding('builtins');
132132

133-
const processConfig = JSONParse(nativeModule.config, (_key, value) => {
133+
const processConfig = JSONParse(binding.config, (_key, value) => {
134134
// The `reviver` argument of the JSONParse method will visit all the values of
135135
// the parsed config, including the "root" object, so there is no need to
136136
// explicitly freeze the config outside of this method
@@ -276,7 +276,7 @@ const features = {
276276
// This needs to be dynamic because --no-node-snapshot disables the
277277
// code cache even if the binary is built with embedded code cache.
278278
get cached_builtins() {
279-
return nativeModule.hasCachedBuiltins();
279+
return binding.hasCachedBuiltins();
280280
}
281281
};
282282

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy