Skip to content

Commit 9f7bb5c

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 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-
constnativeModule=internalBinding('builtins');
131+
constbinding=internalBinding('builtins');
132132

133-
constprocessConfig=JSONParse(nativeModule.config,(_key,value)=>{
133+
constprocessConfig=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
getcached_builtins(){
279-
returnnativeModule.hasCachedBuiltins();
279+
returnbinding.hasCachedBuiltins();
280280
}
281281
};
282282

0 commit comments

Comments
(0)