@@ -494,7 +494,7 @@ class HooksProxy {
494494 */
495495 #lock;
496496 /**
497- * The InternalWorker instance, which lets us communicate with the loader thread.
497+ * The HooksWorker instance, which lets us communicate with the loader thread.
498498 */
499499 #worker;
500500
@@ -518,7 +518,7 @@ class HooksProxy {
518518 #isWorkerOwner = false ;
519519
520520 constructor ( ) {
521- const { InternalWorker , hooksPort } = require ( 'internal/worker' ) ;
521+ const { HooksWorker , hooksPort } = require ( 'internal/worker' ) ;
522522 const lock = new SharedArrayBuffer ( SHARED_MEMORY_BYTE_LENGTH ) ;
523523 this . #lock = new Int32Array ( lock ) ;
524524
@@ -527,7 +527,7 @@ class HooksProxy {
527527 // the existing instance. If another thread created it, the constructor will throw
528528 // Fallback is to use the existing hooksPort created by the thread that originally
529529 // spawned the customization hooks thread.
530- this . #worker = new InternalWorker ( loaderWorkerId , {
530+ this . #worker = new HooksWorker ( loaderWorkerId , {
531531 stderr : false ,
532532 stdin : false ,
533533 stdout : false ,
@@ -551,10 +551,10 @@ class HooksProxy {
551551
552552 waitForWorker ( ) {
553553 // There is one Hooks instance for each worker thread. But only one of
554- // these Hooks instances has an InternalWorker . That was the Hooks instance
554+ // these Hooks instances has a HooksWorker . That was the Hooks instance
555555 // created for the first thread that registers a hook set.
556556 // It means for all Hooks instances that are not on that thread => they are
557- // done because they delegate to the single InternalWorker .
557+ // done because they delegate to the single HooksWorker .
558558 if ( ! this . #isWorkerOwner) {
559559 return ;
560560 }
0 commit comments