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 @@ -67,7 +67,7 @@ cluster.setupMaster = function(options) {
67
67
// process has its own memory mappings.)
68
68
if ( settings . execArgv . some ( ( s ) => s . startsWith ( '--prof' ) ) &&
69
69
! settings . execArgv . some ( ( s ) => s . startsWith ( '--logfile=' ) ) ) {
70
- settings . execArgv = settings . execArgv . concat ( [ '--logfile=v8-%p.log' ] ) ;
70
+ settings . execArgv = [ ... settings . execArgv , '--logfile=v8-%p.log' ] ;
71
71
}
72
72
73
73
cluster . settings = settings ;
@@ -104,7 +104,7 @@ function setupSettingsNT(settings) {
104
104
105
105
function createWorkerProcess ( id , env ) {
106
106
const workerEnv = { ...process . env , ...env , NODE_UNIQUE_ID : `${ id } ` } ;
107
- const execArgv = cluster . settings . execArgv . slice ( ) ;
107
+ const execArgv = [ ... cluster . settings . execArgv ] ;
108
108
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 / ;
109
109
const nodeOptions = process . env . NODE_OPTIONS ?
110
110
process . env . NODE_OPTIONS : '' ;
You can’t perform that action at this time.
0 commit comments