diff options
author | Satya Rohith <me@satyarohith.com> | 2024-03-14 01:22:53 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 19:52:53 +0000 |
commit | bbc211906dcd5043af549250343cd7b42fb45043 (patch) | |
tree | 49868b4b758290dcec6668f95495ce9d79ad6a86 /ext/node/polyfills/02_init.js | |
parent | 0fd8f549e2194223eca2d4b17f4e96cd5a0f5fd5 (diff) |
fix(ext/node): make worker ids sequential (#22884)
Diffstat (limited to 'ext/node/polyfills/02_init.js')
-rw-r--r-- | ext/node/polyfills/02_init.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/node/polyfills/02_init.js b/ext/node/polyfills/02_init.js index 04820b837..85f924493 100644 --- a/ext/node/polyfills/02_init.js +++ b/ext/node/polyfills/02_init.js @@ -14,6 +14,7 @@ function initialize( usesLocalNodeModulesDir, argv0, runningOnMainThread, + workerId, maybeWorkerMetadata, ) { if (initialized) { @@ -39,7 +40,11 @@ function initialize( // FIXME(bartlomieju): not nice to depend on `Deno` namespace here // but it's the only way to get `args` and `version` and this point. internals.__bootstrapNodeProcess(argv0, Deno.args, Deno.version); - internals.__initWorkerThreads(runningOnMainThread, maybeWorkerMetadata); + internals.__initWorkerThreads( + runningOnMainThread, + workerId, + maybeWorkerMetadata, + ); internals.__setupChildProcessIpcChannel(); // `Deno[Deno.internal].requireImpl` will be unreachable after this line. delete internals.requireImpl; |