summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/worker_threads.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-03-11 02:51:06 +0000
committerGitHub <noreply@github.com>2024-03-11 08:21:06 +0530
commitbb6e4c7414ea9d2cd4cebaa6c3cb053d9de355e5 (patch)
treef11d84aaae55b8c421d3317a8911f8ce6f939642 /ext/node/polyfills/worker_threads.ts
parent2c3162f9940399c3fdaeb0dec7474cc38bbe32d2 (diff)
fix(ext/node): worker_threads.parentPort is updated on startup (#20794)
This addresses https://github.com/denoland/deno/issues/20613#issuecomment-1739962483.
Diffstat (limited to 'ext/node/polyfills/worker_threads.ts')
-rw-r--r--ext/node/polyfills/worker_threads.ts1
1 files changed, 1 insertions, 0 deletions
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(