Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0237744

Browse files
daeyeondanielleadams
authored andcommitted
lib: disambiguatenative module tobinding
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>PR-URL:#45673Refs:#44135Reviewed-By: Chengzhong Wu <legendecas@gmail.com>Reviewed-By: Luigi Pinca <luigipinca@gmail.com>Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent0cc72b3 commit0237744

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎lib/internal/bootstrap/node.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ process.domain = null;
104104
}
105105
process._exiting=false;
106106

107-
// process.config is serialized config.gypi
108-
constnativeModule=internalBinding('builtins');
109-
110107
// TODO(@jasnell): Once this has gone through one full major
111108
// release cycle, remove the Proxy and setter and update the
112109
// getter to either return a read-only object or always return
@@ -162,9 +159,12 @@ const deprecationHandler = {
162159
}
163160
};
164161

162+
// process.config is serialized config.gypi
163+
constbinding=internalBinding('builtins');
164+
165165
// eslint-disable-next-line node-core/prefer-primordials
166166
letprocessConfig=newProxy(
167-
JSONParse(nativeModule.config),
167+
JSONParse(binding.config),
168168
deprecationHandler);
169169

170170
ObjectDefineProperty(process,'config',{
@@ -310,7 +310,7 @@ const features = {
310310
// This needs to be dynamic because --no-node-snapshot disables the
311311
// code cache even if the binary is built with embedded code cache.
312312
getcached_builtins(){
313-
returnnativeModule.hasCachedBuiltins();
313+
returnbinding.hasCachedBuiltins();
314314
}
315315
};
316316

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp