From 8703829d4143cf90cf527ab1d095060b51f332de Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Fri, 4 Aug 2023 16:26:43 +0200 Subject: [PATCH] Remove the EM_LOG_DEMANGLE parameter from the call to emscripten_log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EM_LOG_DEMANGLE does nothing from emscripten 3.1.44 and is marked deprecated. Also, it doesn't work for strict mode functions as described in PR 19820, and needs the deprecated arguments.callee. Change-Id: I4d71f50caa75373253881c4153acbc6ab38fcf18 Reviewed-by: Morten Johan Sørvig Reviewed-by: Piotr Wierciński --- src/corelib/global/qlogging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index d4a2295778..991a197b53 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1896,7 +1896,7 @@ static bool wasm_default_message_handler(QtMsgType type, return false; // Leave logging up to stderr handler QString formattedMessage = qFormatLogMessage(type, context, message); - int emOutputFlags = (EM_LOG_CONSOLE | EM_LOG_DEMANGLE); + int emOutputFlags = EM_LOG_CONSOLE; QByteArray localMsg = message.toLocal8Bit(); switch (type) { case QtDebugMsg: