Skip to content

Commit

Permalink
fix(ext/node): worker_threads.parentPort is updated on startup (#20794)
Browse files Browse the repository at this point in the history
This addresses
#20613 (comment).
  • Loading branch information
bartlomieju authored Mar 11, 2024
1 parent 2c3162f commit bb6e4c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/node/polyfills/worker_threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ internals.__initWorkerThreads = (runningOnMainThread: boolean) => {
>();

parentPort = self as ParentPort;
defaultExport.parentPort = parentPort;

const initPromise = PromisePrototypeThen(
once(
Expand Down

0 comments on commit bb6e4c7

Please sign in to comment.