We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
native module
binding
1 parent 126685d commit 0bb8cc9Copy full SHA for 0bb8cc9
lib/internal/bootstrap/node.js
@@ -162,9 +162,12 @@ const deprecationHandler = {
162
}
163
};
164
165
+// process.config is serialized config.gypi
166
+const binding = internalBinding('builtins');
167
+
168
// eslint-disable-next-line node-core/prefer-primordials
169
let processConfig = new Proxy(
- JSONParse(nativeModule.config),
170
+ JSONParse(binding.config),
171
deprecationHandler);
172
173
ObjectDefineProperty(process, 'config', {
@@ -310,7 +313,7 @@ const features = {
310
313
// This needs to be dynamic because --no-node-snapshot disables the
311
314
// code cache even if the binary is built with embedded code cache.
312
315
get cached_builtins() {
- return nativeModule.hasCachedBuiltins();
316
+ return binding.hasCachedBuiltins();
317
318
319
0 commit comments