Skip to content

Commit

Permalink
lib: avoid changing process.config
Browse files Browse the repository at this point in the history
It is deprecated and will emit a warning in Node.js 16.

Refs: nodejs/node#36902
  • Loading branch information
targos committed Jan 30, 2021
1 parent c3c510d commit 436a579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function configure (gyp, argv, callback) {

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

var config = process.config || {}
var config = Object.assign({}, process.config)
var defaults = config.target_defaults
var variables = config.variables

Expand Down

0 comments on commit 436a579

Please sign in to comment.