Skip to content

Commit 5f1a06c

Browse files
authored
lib: deep-copy process.config during configure (#2368)
1 parent be55870 commit 5f1a06c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/configure.js

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

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

101-
var config = Object.assign({}, process.config)
101+
var config = process.config ? JSON.parse(JSON.stringify(process.config)) : {}
102102
var defaults = config.target_defaults
103103
var variables = config.variables
104104

0 commit comments

Comments
 (0)