Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 436a579

Browse files
committedJan 30, 2021
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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/configure.js

+1-1
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)
Please sign in to comment.