Skip to content

Commit 42f7864

Browse files
daeyeontargos
authored andcommitted
lib: disambiguate native module to binding
Signed-off-by: Daeyeon Jeong <[email protected]> PR-URL: #45673 Refs: #44135 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent d035a51 commit 42f7864

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/bootstrap/node.js

+3-3
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)