You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unify module splitting implementation for JSPI (#26396)
Previously, module splitting with JSPI required a special built-in
function `__load_secondary_module` and wasm-split setting to coordinate
the loading of the secondary module.
This change updates the `splitModuleProxyHandler` to support JSPI by
wrapping the generated placeholder functions in
`WebAssembly.Suspending`. The placeholder will then automatically load
the secondary module asynchronously.
A standalone `save_profile_data.js` script is extracted from existing
tests for reuse, and a new test `test_split_module_embind_jspi` is added
to ensure module splitting functions correctly alongside embind and
JSPI.
---------
Co-authored-by: Heejin Ahn <aheejin@gmail.com>
0 commit comments