File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,6 @@ process.domain = null;
104104}
105105process . _exiting = false ;
106106
107- // process.config is serialized config.gypi
108- const nativeModule = 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+ const binding = internalBinding ( 'builtins' ) ;
164+
165165// eslint-disable-next-line node-core/prefer-primordials
166166let processConfig = new Proxy (
167- JSONParse ( nativeModule . config ) ,
167+ JSONParse ( binding . config ) ,
168168 deprecationHandler ) ;
169169
170170ObjectDefineProperty ( 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 get cached_builtins ( ) {
313- return nativeModule . hasCachedBuiltins ( ) ;
313+ return binding . hasCachedBuiltins ( ) ;
314314 }
315315} ;
316316
You can’t perform that action at this time.
0 commit comments