Open
Description
Feature gate: #![feature(wasm_exception_handling_intrinsics)]
This is a tracking issue for wasm exception-handling architecture intrinsics; currently, only the throw
instruction is implemented as a platform intrinsic.
Public API
// core::arch::wasm32
pub unsafe fn throw<const TAG: i32>(ptr: *mut u8) -> !;
Steps / History
- Implementation: [wasm32] Add an intrinsic for the throw instruction stdarch#1542
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Needs better support from LLVM before merging. At the moment, LLVM only accepts a tag value of
0
, signifying a C++ exception. Ideally one would be able to somehow declare a tag in a similar way to astatic
, and pass that as the TAG to the intrinsic.