lib: disambiguate native module to binding

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/45673
Refs: https://github.com/nodejs/node/pull/44135
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
Daeyeon Jeong authored and Michaël Zasso committed 2022-12-13 09:42:42 +00:00
1 parent 353339a552
commit 9f7bb5ce0e
1 file changed
+3 -3
+3 -3
View File
@@ -128,9 +128,9 @@ process._exiting = false;
}
// process.config is serialized config.gypi
const nativeModule = internalBinding('builtins');
const binding = internalBinding('builtins');
const processConfig = JSONParse(nativeModule.config, (_key, value) => {
const processConfig = JSONParse(binding.config, (_key, value) => {
// The `reviver` argument of the JSONParse method will visit all the values of
// the parsed config, including the "root" object, so there is no need to
// explicitly freeze the config outside of this method
@@ -276,7 +276,7 @@ const features = {
// This needs to be dynamic because --no-node-snapshot disables the
// code cache even if the binary is built with embedded code cache.
get cached_builtins() {
return nativeModule.hasCachedBuiltins();
return binding.hasCachedBuiltins();
}
};