From 26f42a248f4764f85c1c3c3c511b82a990e4b651 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 24 May 2023 03:56:29 +0900 Subject: fix(ext/node): add basic node:worker_threads support (#19192) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR restores `node:worker_threads` implementation and test cases from [`std@0.175.0/node`](https://github.com/denoland/deno_std/blob/0.175.0/node/worker_threads.ts). --------- Co-authored-by: Bartek IwaƄczuk --- ext/node/polyfills/02_init.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/node/polyfills/02_init.js') diff --git a/ext/node/polyfills/02_init.js b/ext/node/polyfills/02_init.js index dc8955d83..a2fba8c0c 100644 --- a/ext/node/polyfills/02_init.js +++ b/ext/node/polyfills/02_init.js @@ -46,6 +46,7 @@ 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(); // `Deno[Deno.internal].requireImpl` will be unreachable after this line. delete internals.requireImpl; } -- cgit v1.2.3