From 8f3d300cd3a6219993c162eb82add2f5e71c26bc Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 22 Mar 2023 18:47:28 -0700 Subject: [PATCH] Downgrade error message when threads exit with live runtime Fixes: #19036 --- src/worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/worker.js b/src/worker.js index 12de2659763a6..4c8fe3cebc4f7 100644 --- a/src/worker.js +++ b/src/worker.js @@ -249,8 +249,8 @@ function handleMessage(e) { // and let the top level handler propagate it back to the main thread. throw ex; } -#if ASSERTIONS - err('Pthread 0x' + Module['_pthread_self']().toString(16) + ' completed its main entry point with an `unwind`, keeping the worker alive for asynchronous operation.'); +#if RUNTIME_DEBUG + dbg('Pthread 0x' + Module['_pthread_self']().toString(16) + ' completed its main entry point with an `unwind`, keeping the worker alive for asynchronous operation.'); #endif } } else if (e.data.cmd === 'cancel') { // Main thread is asking for a pthread_cancel() on this thread.