From f739f5dbbe8a728c64048457d151ea9f74db5561 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Tue, 27 Aug 2024 13:57:58 +0200 Subject: [PATCH] Fix cluster shim for Bun --- src/utils/clusterBunShim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,