Show error dialogs instead of aborting the page on trace load errors.

Exception catching was off by default in the web build, so the
try/catch handlers around trace loading were dead code and any
failure unwound through the page.
This commit is contained in:
Bartosz Taudul
2026-09-12 19:52:27 +02:00
parent 643778c8e6
commit 8a5f2c6f8c

View File

@@ -358,6 +358,7 @@ if(NOT EMSCRIPTEN)
endif()
if(EMSCRIPTEN)
target_compile_options(${PROJECT_NAME} PRIVATE -sDISABLE_EXCEPTION_CATCHING=0)
target_link_options(${PROJECT_NAME} PRIVATE
-pthread
-sASSERTIONS=0
@@ -369,6 +370,7 @@ if(EMSCRIPTEN)
-sEXPORTED_FUNCTIONS=_main,_nativeOpenFile,_tracy_paste_clipboard
-sEXPORTED_RUNTIME_METHODS=ccall
-sENVIRONMENT=web,worker
-sDISABLE_EXCEPTION_CATCHING=0
"--pre-js;${CMAKE_CURRENT_LIST_DIR}/wasm/url_trace_pre.js"
--preload-file embed.tracy
)