From 4463c69bd94ab75c637755b7c5d7b65e05c507b2 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Wed, 18 Oct 2023 15:32:28 +0200 Subject: [PATCH] Fix strict mode with 3.1.46. Closes #3533 --- emscripten/buildToolkit | 1 + 1 file changed, 1 insertion(+) diff --git a/emscripten/buildToolkit b/emscripten/buildToolkit index 6029bceee1f..b6f20e5a7ae 100755 --- a/emscripten/buildToolkit +++ b/emscripten/buildToolkit @@ -122,6 +122,7 @@ if ($wasmQ) { $LFLAGS .= " -s INITIAL_MEMORY=512MB"; $LFLAGS .= " -s STACK_SIZE=256MB"; $LFLAGS .= " -s SINGLE_FILE=1"; + $LFLAGS .= " -s INCOMING_MODULE_JS_API=onRuntimeInitialized"; $FLAGS_NAME = "-wasm"; }