diff --git a/ext/node/polyfills/worker_threads.ts b/ext/node/polyfills/worker_threads.ts index 74abf5bb5f0fcf..2e379cfaf49016 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(