diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index ae9b9a7ad62b93f..2fc3f8ac6f24970 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -445,6 +445,24 @@ These give developers more flexibility when structuring and loading JavaScript m - `dom.multiple_import_maps.enabled` - : Set to `true` to enable. +## WebAssembly + +### JavaScript Promise Integration + +[WebAssembly JavaScript Promise Integration](https://github.com/WebAssembly/js-promise-integration) (JS-PI) allows WebAssembly applications to interoperate with JavaScript APIs that use {{jsxref("Promise")}} objects. +This lets WebAssembly code suspend while waiting for a JavaScript promise and resume when the promise settles. +([Firefox bug 2015877](https://bugzil.la/2015877)). + +| Release channel | Version added | Enabled by default? | +| ----------------- | ------------- | ------------------- | +| Nightly | 152 | Yes | +| Developer Edition | - | - | +| Beta | - | - | +| Release | - | - | + +- `javascript.options.wasm_js_promise_integration` + - : Set to `true` to enable. + ## APIs ### Scoped custom element registries diff --git a/files/en-us/mozilla/firefox/releases/152/index.md b/files/en-us/mozilla/firefox/releases/152/index.md index 11557586ce2ffcf..948e8d69c04cd05 100644 --- a/files/en-us/mozilla/firefox/releases/152/index.md +++ b/files/en-us/mozilla/firefox/releases/152/index.md @@ -75,7 +75,11 @@ Firefox 152 is the current [Beta version of Firefox](https://www.firefox.com/en- - +### WebAssembly + +- [WebAssembly JavaScript Promise Integration](https://github.com/WebAssembly/js-promise-integration) (JS-PI) is now available in Nightly builds, where it is enabled by default. + This lets WebAssembly code suspend while waiting for JavaScript {{jsxref("Promise")}} objects and resume when the promises settle. + ([Firefox bug 2015877](https://bugzil.la/2015877)). @@ -99,10 +103,15 @@ Firefox 152 is the current [Beta version of Firefox](https://www.firefox.com/en- ## Experimental web features -These features are shipping in Firefox 152 but are disabled by default. +These features are shipping in Firefox 152 but are disabled by default unless otherwise noted. To experiment with them, search for the appropriate preference on the `about:config` page and set it to `true`. You can find more such features on the [Experimental features](/en-US/docs/Mozilla/Firefox/Experimental_features) page. +- **WebAssembly JavaScript Promise Integration (JS-PI)**: `javascript.options.wasm_js_promise_integration` + + WebAssembly JavaScript Promise Integration is now available in Nightly builds, where it is enabled by default. + ([Firefox bug 2015877](https://bugzil.la/2015877)). + - **Check if a media encoding/decoding configuration is supported for WebRTC**: `media.mediacapabilities.webrtc.enabled` The `webrtc` type can now be passed as an option for [`MediaCapabilities.decodingInfo()`](/en-US/docs/Web/API/MediaCapabilities/decodingInfo#webrtc) and [`MediaCapabilities.encodingInfo()`](/en-US/docs/Web/API/MediaCapabilities/encodingInfo#webrtc) to check if an encoding/decoding configuration can be used for WebRTC.