1
0
Fork 0
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:
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(