Intent to ship: WebAssembly exception-handling

Skip to first unread message

Ryan Hunt

Mar 23, 2022, 11:06:45 AMMar 23
The WebAssembly exception-handling proposal allows WebAssembly code to throw
and catch exceptions. This allows native programs that use exceptions to be
ported to the web without an expensive polyfill.

This feature has been enabled in Nightly behind a pref, and I intend to turn
this on by default in Firefox 100.

Bug to turn on by default:
Standards Body: WebAssembly Community Group
Platform coverage: All platforms that support WebAssembly
Preference: javascript.options.wasm_exceptions
DevTools bug: N/A
Other browsers:
  * Chrome - Shipped in Chrome 95 (Oct 19, 2021)
  * Safari - Shipped in Safari 15.2 (Dec 13, 2021)
  * There are web-platform-tests for this feature under `wasm/jsapi`
  * There are also WebAssembly spec tests shared by all JS engines that test
    this feature (js/src/jit-test/tests/wasm/spec/exception-handling)

This proposal is in Phase 3 of the WebAssembly Community Group. Phase 4 is
when a proposal would normally be considered ready to be released. We are
shipping now to maintain web compatibility with other browsers that have
already released this feature. We have asked and been granted an exception to
the exposure guidelines standardization requirements [1] from the technical
leadership module committee [2].


Ryan Hunt

Mar 25, 2022, 5:51:02 AMMar 25
Reply all
Reply to author
0 new messages