Skip to content

Commit 8aa15de

Browse files
daeyeonnodejs-github-bot
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 cb940b9 commit 8aa15de

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
@@ -140,9 +140,9 @@ process.domain = null;
140140
process._exiting = false;
141141

142142
// process.config is serialized config.gypi
143-
const nativeModule = internalBinding('builtins');
143+
const binding = internalBinding('builtins');
144144

145-
const processConfig = JSONParse(nativeModule.config, (_key, value) => {
145+
const processConfig = JSONParse(binding.config, (_key, value) => {
146146
// The `reviver` argument of the JSONParse method will visit all the values of
147147
// the parsed config, including the "root" object, so there is no need to
148148
// explicitly freeze the config outside of this method
@@ -288,7 +288,7 @@ const features = {
288288
// This needs to be dynamic because --no-node-snapshot disables the
289289
// code cache even if the binary is built with embedded code cache.
290290
get cached_builtins() {
291-
return nativeModule.hasCachedBuiltins();
291+
return binding.hasCachedBuiltins();
292292
}
293293
};
294294

0 commit comments

Comments
 (0)