As of Fx153 I intend to enable WebAssembly JS-Promise-Integration (JSPI)
by default on all platforms.
WebAssembly JS-Promise-Integration allows synchronous WebAssembly code
to call asynchronous Web APIs. It does this by suspending the synchronous
WebAssembly execution stack and yielding a new promise that awaits the result
of the Web API's promise. When that promise resolves, WebAssembly execution is
resumed with the result.
This feature has been developed and shipped behind a pref, enabled Nightly-only
since Fx152. We saw no major regressions, so I now intend to turn it on by
default on all channels.
Intent to prototype thread:
Bug to turn on by default:
Specification:
This is a Phase 4 WebAssembly proposal. It is finished but has not yet been
merged into the official spec document.
Standards body:
W3C (WebAssembly CG & WG)
Platform coverage:
All.
Preference:
javascript.options.wasm_js_promise_integration
DevTools bug:
Extensions bug:
N/A
Use counter:
N/A
W3C Tag review:
Standards-positions discussion:
Other browsers:
- Blink: Shipped / Positive
- WebKit: Shipping, with a neutral standards-position
web-platform-tests: