Minimal reproducible example for emscripten#25551.
Build with emcmake cmake -Bbuild -DCMAKE_BUILD_TYPE=Release && make -Cbuild -j8.
Without -s ASYNCIFY, test.html will show a hello world message. With -s ASYNCIFY, the following error will be printed to the console:
Uncaught (in promise) TypeError: Module.dynCall_i is not a function
invoke_i http://localhost:9000/build/MyProject.js:1
wrapper http://localhost:9000/build/MyProject.js:1
initRuntime http://localhost:9000/build/MyProject.js:1
doRun http://localhost:9000/build/MyProject.js:1
run http://localhost:9000/build/MyProject.js:1
createModule http://localhost:9000/build/MyProject.js:1
async* http://localhost:9000/test.html:6
MyProject.js:1:550541