From baebf6629fdde4aaef38d22a9525381e00e33f34 Mon Sep 17 00:00:00 2001 From: Tim Stableford Date: Thu, 30 Nov 2023 14:43:46 +0000 Subject: [PATCH] Added TODO for disabling assertions in prod build --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 4c353d8..c033f64 100755 --- a/build.sh +++ b/build.sh @@ -9,6 +9,7 @@ if [ "$1" == "dev" ]; then extension="-O0 -g3 -s ASSERTIONS=1 -s SAFE_HEAP=1 -s STACK_OVERFLOW_CHECK=2" else + # TODO: This appears to be a bug in emscripten. Disable assertions when that bug is resolved or a workaround found. # ASSERTIONS=1 required with optimisations and strict mode. https://github.com/emscripten-core/emscripten/issues/20721 extension="-O3 --closure 1 -s ASSERTIONS=1" fi