Skip to content

Commit 436a579

Browse files
committed
lib: avoid changing process.config
It is deprecated and will emit a warning in Node.js 16. Refs: nodejs/node#36902
1 parent c3c510d commit 436a579

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/configure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function configure (gyp, argv, callback) {
9696

9797
log.verbose('build/' + configFilename, 'creating config file')
9898

99-
var config = process.config || {}
99+
var config = Object.assign({}, process.config)
100100
var defaults = config.target_defaults
101101
var variables = config.variables
102102

0 commit comments

Comments
 (0)