Skip to content

Commit

Permalink
lib: deep-copy process.config during configure (#2368)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeDeeG committed May 29, 2021
1 parent be55870 commit 5f1a06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/configure.js
Expand Up @@ -98,7 +98,7 @@ function configure (gyp, argv, callback) {

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

var config = Object.assign({}, process.config)
var config = process.config ? JSON.parse(JSON.stringify(process.config)) : {}
var defaults = config.target_defaults
var variables = config.variables

Expand Down

0 comments on commit 5f1a06c

Please sign in to comment.