From 42f786406cfbcb8f0cece75a74d8d855ee6533a3 Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Tue, 29 Nov 2022 20:22:49 +0900 Subject: [PATCH] lib: disambiguate `native module` to `binding` Signed-off-by: Daeyeon Jeong PR-URL: https://github.com/nodejs/node/pull/45673 Refs: https://github.com/nodejs/node/pull/44135 Reviewed-By: Chengzhong Wu Reviewed-By: Luigi Pinca Reviewed-By: Joyee Cheung --- lib/internal/bootstrap/node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index 18d23253b1c94e..e267f76b8c5542 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -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(); } };