Details
-
Sub-task
-
Resolution: Done
-
P2: Important
-
None
-
-
9a2370e43 (dev)
Description
The existing two code paths for asyncify 1 and 2 are actually not specific to the asyncify version, but rather "legacy" and "modern" code paths. Unify under the modern Emscripten API:
- Use EM_ASYNC_JS() instead of EM_JS()
- Remove ASYNCIFY_IMPORTS linker option - not needed once EM_ASYNC_JS is used.
- Remove useJspi() runtime switch. There is no runtime difference between asyncify 1 and 2.