mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05: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
1 changed files with 1 additions and 0 deletions
|
@ -409,6 +409,7 @@ internals.__initWorkerThreads = (runningOnMainThread: boolean) => {
|
|||
>();
|
||||
|
||||
parentPort = self as ParentPort;
|
||||
defaultExport.parentPort = parentPort;
|
||||
|
||||
const initPromise = PromisePrototypeThen(
|
||||
once(
|
||||
|
|
Loading…
Reference in a new issue