Summary:

WebAssembly JS-Promise-Integration (JS-PI) allows sync WebAssembly code to
use async Web API's.

This is achieved by suspending the synchronous WebAssembly execution stack 
and
yielding a new promise which awaits the results of the Web API's promise. 
When
the Web API's promise resolves, the wasm execution is resumed with the 
results
of the Web API.

This feature has been developed behind a pref. I intend to enable it as
Nightly-only in Fx152. If there are no major regressions we'd like to let it
ride the trains to release in Fx152 or Fx153 (I'll send a separate
intent-to-ship).

Bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1897981

Specification:
https://github.com/webassembly/js-promise-integration

This is a Phase 4 WebAssembly Proposal that is finished but just hasn't been
merged into the official spec document yet.

Standards Body:
W3C (WebAssembly CG & WG)

Platform Coverage:
all.

DevTools Bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=2036877

Extensions Bug:
N/A

Use Counter:
N/A 

Standards-Positions Discussion:
https://github.com/mozilla/standards-positions/issues/944

Other Browsers:
Blink: Positive https://chromestatus.com/feature/5674874568704000
WebKit: Neutral https://github.com/WebKit/standards-positions/issues/422

Preference:
javascript.options.wasm_js_promise_integration

web-platform-tests:
https://wpt.fyi/results/wasm/jsapi/jspi?label=master&label=experimental&aligned&q=wasm%2Fjsapi%2Fjspi



-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/a5bdba34-a4a9-441f-9e52-cc64dc3076d0n%40mozilla.org.

Reply via email to