Closed svvac closed 3 years ago
This PR depends on libsodium#1025
Checking the previous build for the handlers :
$ grep -r -o -e 'unhandledRejection' -e 'uncaughtException' dist
dist/browsers-sumo/sodium.js:unhandledRejection
dist/browsers-sumo/sodium.js:unhandledRejection
dist/browsers-sumo/sodium.js:uncaughtException
dist/browsers-sumo/sodium.js:unhandledRejection
dist/browsers/sodium.js:unhandledRejection
dist/browsers/sodium.js:unhandledRejection
dist/browsers/sodium.js:uncaughtException
dist/browsers/sodium.js:unhandledRejection
dist/modules-sumo/libsodium-sumo.js:unhandledRejection
dist/modules-sumo/libsodium-sumo.js:unhandledRejection
dist/modules-sumo/libsodium-sumo.js:uncaughtException
dist/modules-sumo/libsodium-sumo.js:unhandledRejection
dist/modules/libsodium.js:unhandledRejection
dist/modules/libsodium.js:unhandledRejection
dist/modules/libsodium.js:uncaughtException
dist/modules/libsodium.js:unhandledRejection
After the changes :
$ grep -r -o -e 'unhandledRejection' -e 'uncaughtException' dist
Building with
NODEJS_CATCH_EXIT=0
andNODEJS_CATCH_REJECTION=0
tells emscripten to not add the handlers in the first place, so we do not need to compensate after the fact.Fixes #253