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:
Bartek Iwańczuk 2024-03-11 02:51:06 +00:00 committed by GitHub
parent 2c3162f994
commit bb6e4c7414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -409,6 +409,7 @@ internals.__initWorkerThreads = (runningOnMainThread: boolean) => {
>();
parentPort = self as ParentPort;
defaultExport.parentPort = parentPort;
const initPromise = PromisePrototypeThen(
once(