Exception references with exnref (WebAssembly)Baseline · Newly available
When caught, an exception is reified into an exception reference, a value of the new type exnref.
Works in the latest version of every major browser, but older devices may not support it yet. Baseline since May 29, 2025.
Browser support
DesktopChrome
1–136Not supported
137+Supportedsince May 27, 2025
Current: 155Edge
12–136Not supported
137+Supportedsince May 29, 2025
Current: 154Firefox
1–130Not supported
131+Supportedsince Oct 1, 2024
Current: 157Safari
1–18.3Not supported
18.4+Supportedsince Mar 31, 2025
Current: 27MobileChrome Android
18–136Not supported
137+Supportedsince May 27, 2025
Current: 155Firefox Android
4–130Not supported
131+Supportedsince Oct 1, 2024
Current: 157Safari iOS
1–18.3Not supported
18.4+Supportedsince Mar 31, 2025
Current: 27How to use
Every current browser supports this, but it only became Baseline on May 29, 2025. Use it as a progressive enhancement, or keep a fallback if you support older devices.
Example
Full syntax and examples are on MDN — see the links below.
Feature detection
There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.