Skip to content

Commit 9a246bc

Browse files
juntyrhoodmane
andauthored
Add note about exception handling
Co-authored-by: Hood Chatham <[email protected]>
1 parent 067eac8 commit 9a246bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/doc/rustc/src/platform-support/wasm32-unknown-emscripten.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,8 @@ Please refer to the [`wasm32-unknown-unknown`](./wasm32-unknown-unknown.md)
141141
target's documentation on which WebAssembly features Rust enables by default, how
142142
features can be disabled, and how Rust code can be conditionally compiled based on
143143
which features are enabled.
144+
145+
Note that Rust code compiled for `wasm32-unknown-emscripten` currently enables
146+
`-fexceptions` (JS exceptions) by default unless the Rust code is compiled with
147+
`-Cpanic=abort`. `-fwasm-exceptions` (WASM exceptions) is not yet currently supported,
148+
see <https://github.com/rust-lang/rust/issues/112195>.

0 commit comments

Comments
 (0)