File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,6 @@ process.domain = null;
104
104
}
105
105
process . _exiting = false ;
106
106
107
- // process.config is serialized config.gypi
108
- const nativeModule = internalBinding ( 'builtins' ) ;
109
-
110
107
// TODO(@jasnell): Once this has gone through one full major
111
108
// release cycle, remove the Proxy and setter and update the
112
109
// getter to either return a read-only object or always return
@@ -162,9 +159,12 @@ const deprecationHandler = {
162
159
}
163
160
} ;
164
161
162
+ // process.config is serialized config.gypi
163
+ const binding = internalBinding ( 'builtins' ) ;
164
+
165
165
// eslint-disable-next-line node-core/prefer-primordials
166
166
let processConfig = new Proxy (
167
- JSONParse ( nativeModule . config ) ,
167
+ JSONParse ( binding . config ) ,
168
168
deprecationHandler ) ;
169
169
170
170
ObjectDefineProperty ( process , 'config' , {
@@ -310,7 +310,7 @@ const features = {
310
310
// This needs to be dynamic because --no-node-snapshot disables the
311
311
// code cache even if the binary is built with embedded code cache.
312
312
get cached_builtins ( ) {
313
- return nativeModule . hasCachedBuiltins ( ) ;
313
+ return binding . hasCachedBuiltins ( ) ;
314
314
}
315
315
} ;
316
316
You can’t perform that action at this time.
0 commit comments