-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASYNCIFY and INCOMING_MODULE_JS_API #21955
Comments
Thanks for the report and the detailed analysis. I think that is indeed a bug. |
Was this indeed fixed by #21958 ? I can't see the connection between that |
sorry, no that was a mistake |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed that if I use
ASYNCIFY
andINCOMING_MODULE_JS_API
together, then I must includenoExitRuntime
in theINCOMING_MODULE_JS_API
list even if I don't actually provide it in theModule
, otherwise Asyncify won't work. Apparently this has to do with this part of the code:emscripten/src/library.js
Lines 3012 to 3019 in 9ac0425
Which implies that if
noExitRuntime
is not included in the list,keepRuntimeAlive()
will always returnfalse
so Asyncify is impossible. But why would I add it to the list if I don't intend to provide it? This seems like a bug to me.Version of emscripten/emsdk:
The text was updated successfully, but these errors were encountered: