mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
fix(ext/node): worker_threads.parentPort is updated on startup (#20794)
This addresses https://github.com/denoland/deno/issues/20613#issuecomment-1739962483.
This commit is contained in:
parent
2c3162f994
commit
bb6e4c7414
@ -409,6 +409,7 @@ internals.__initWorkerThreads = (runningOnMainThread: boolean) => {
|
||||
>();
|
||||
|
||||
parentPort = self as ParentPort;
|
||||
defaultExport.parentPort = parentPort;
|
||||
|
||||
const initPromise = PromisePrototypeThen(
|
||||
once(
|
||||
|
Loading…
Reference in New Issue
Block a user