diff --git a/src/utils/clusterBunShim.js b/src/utils/clusterBunShim.js index e1409f2..0734f6c 100644 --- a/src/utils/clusterBunShim.js +++ b/src/utils/clusterBunShim.js @@ -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 = Object.assign([], process.argv); let command = newArguments.shift(); let newWorker = child_process.spawn(command, newArguments, { env: newEnvironment,