diff --git a/tools/emhermesc/CMakeLists.txt b/tools/emhermesc/CMakeLists.txt index 5955f493531..1f61fe10452 100644 --- a/tools/emhermesc/CMakeLists.txt +++ b/tools/emhermesc/CMakeLists.txt @@ -20,4 +20,6 @@ if (EMSCRIPTEN) target_link_options(emhermesc PRIVATE "SHELL: -s EXPORT_NAME=createHermesc") target_link_options(emhermesc PRIVATE "SHELL: -s BINARYEN_ASYNC_COMPILATION=0 -s SINGLE_FILE=1 -s WASM_ASYNC_COMPILATION=0") + target_link_options(emhermesc PRIVATE + "SHELL: -s NODEJS_CATCH_EXIT=0 -s NODEJS_CATCH_REJECTION=0") endif ()