@@ -49,7 +49,6 @@ function releaseLock() {
4949 try {
5050 initializeESM ( ) ;
5151 hooks = await initializeHooks ( ) ;
52- process . _rawDebug ( '[WORKER]:' , 'hooks:' , hooks ) ;
5352 } catch ( exception ) {
5453 // If there was an error while parsing and executing a user loader, for example if because a loader contained a syntax error,
5554 // then we need to send the error to the main thread so it can be thrown and printed.
@@ -65,7 +64,6 @@ process._rawDebug('[WORKER]:', 'hooks:', hooks);
6564 Atomics . wait ( lock , 0 , 1 ) ; // This pauses the while loop
6665
6766 const { method, args } = deserialize ( data ) ;
68- process . _rawDebug ( '[WORKER]:' , 'request received:' , method , args ) ;
6967 TypedArrayPrototypeFill ( data , undefined ) ;
7068
7169 // Each potential exception needs to be caught individually so that the correct error is sent to the main thread
@@ -85,26 +83,19 @@ process._rawDebug('[WORKER]:', 'hooks:', hooks);
8583 }
8684
8785 try {
88- process . _rawDebug ( '[WORKER]:' , 'response:' , response ) ;
8986 const serializedResponseValue = serialize ( response ) ;
9087 const chunkCount = Math . ceil ( serializedResponseValue . byteLength / CHUNK_THRESHOLD ) ;
91- process . _rawDebug ( '[WORKER]:' , 'chunkCount:' , chunkCount )
9288 for ( let i = 0 ; i < chunkCount ; i ++ ) {
9389 const chunk = {
9490 __proto__ : null ,
9591 done : i === chunkCount - 1 ,
9692 value : serializedResponseValue . slice ( i ) ,
9793 } ;
98- process . _rawDebug ( '[WORKER]:' , 'chunk:' , chunk ) ;
9994 const serializedChunk = serialize ( chunk ) ;
100- process . _rawDebug ( '[WORKER]:' , 'serializedChunk:' , serializedChunk ) ;
10195 // Send the method response (or exception) to the main thread
102-
10396 TypedArrayPrototypeSet ( data , serializedChunk ) ;
104- // process._rawDebug('[WORKER]:', 'chunk set; releasing lock');
10597 releaseLock ( ) ;
10698 }
107-
10899 } catch ( exception ) {
109100 TypedArrayPrototypeSet ( data , serialize ( exception ) ) ;
110101 releaseLock ( ) ;
0 commit comments