forked from svrjs/svrjs
Replace Object.assign for arrays with spread operator.
This commit is contained in:
parent
b3cd8d699d
commit
189fbdc617
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ if (!process.singleThreaded) {
|
|||
const child_process = require("child_process");
|
||||
let newEnvironment = Object.assign({}, env ? env : process.env);
|
||||
newEnvironment.NODE_UNIQUE_ID = cluster._workersCounter;
|
||||
let newArguments = Object.assign([], process.argv);
|
||||
let newArguments = [...process.argv];
|
||||
let command = newArguments.shift();
|
||||
let newWorker = child_process.spawn(command, newArguments, {
|
||||
env: newEnvironment,
|
||||
|
|
Reference in a new issue