File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ cluster.setupMaster = function(options) {
66
66
// process has its own memory mappings.)
67
67
if ( settings . execArgv . some ( ( s ) => s . startsWith ( '--prof' ) ) &&
68
68
! settings . execArgv . some ( ( s ) => s . startsWith ( '--logfile=' ) ) ) {
69
- settings . execArgv = settings . execArgv . concat ( [ '--logfile=v8-%p.log' ] ) ;
69
+ settings . execArgv = [ ... settings . execArgv , '--logfile=v8-%p.log' ] ;
70
70
}
71
71
72
72
cluster . settings = settings ;
@@ -103,7 +103,7 @@ function setupSettingsNT(settings) {
103
103
104
104
function createWorkerProcess ( id , env ) {
105
105
const workerEnv = { ...process . env , ...env , NODE_UNIQUE_ID : `${ id } ` } ;
106
- const execArgv = cluster . settings . execArgv . slice ( ) ;
106
+ const execArgv = [ ... cluster . settings . execArgv ] ;
107
107
const debugArgRegex = / - - i n s p e c t (?: - b r k | - p o r t ) ? | - - d e b u g - p o r t / ;
108
108
const nodeOptions = process . env . NODE_OPTIONS ?
109
109
process . env . NODE_OPTIONS : '' ;
You can’t perform that action at this time.
0 commit comments