diff --git a/dist-build/emscripten.sh b/dist-build/emscripten.sh index afe8aa1f..0125b0a7 100755 --- a/dist-build/emscripten.sh +++ b/dist-build/emscripten.sh @@ -15,6 +15,7 @@ export LDFLAGS="${LDFLAGS} -s AGGRESSIVE_VARIABLE_ELIMINATION=1 -s ALIASING_FUNC export LDFLAGS="${LDFLAGS} -s DISABLE_EXCEPTION_CATCHING=1" export LDFLAGS="${LDFLAGS} -s ELIMINATE_DUPLICATE_FUNCTIONS=1" export LDFLAGS="${LDFLAGS} -s NODEJS_CATCH_EXIT=0" +export LDFLAGS="${LDFLAGS} -s NODEJS_CATCH_REJECTION=0" export CFLAGS="-Os" echo