From bb6e4c7414ea9d2cd4cebaa6c3cb053d9de355e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 11 Mar 2024 02:51:06 +0000 Subject: fix(ext/node): worker_threads.parentPort is updated on startup (#20794) This addresses https://github.com/denoland/deno/issues/20613#issuecomment-1739962483. --- ext/node/polyfills/worker_threads.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') diff --git a/ext/node/polyfills/worker_threads.ts b/ext/node/polyfills/worker_threads.ts index 74abf5bb5..2e379cfaf 100644 --- a/ext/node/polyfills/worker_threads.ts +++ b/ext/node/polyfills/worker_threads.ts @@ -409,6 +409,7 @@ internals.__initWorkerThreads = (runningOnMainThread: boolean) => { >(); parentPort = self as ParentPort; + defaultExport.parentPort = parentPort; const initPromise = PromisePrototypeThen( once( -- cgit v1.2.3