# Function throw

Source

    pub unsafe fn throw<const TAG: i32>(ptr: *mut u8) -> !

🔬This is a nightly-only experimental API. (`wasm_exception_handling_intrinsics` #122465)
Available on `target_family="wasm"` only.
Expand description

Generates the `throw` instruction from the exception-handling proposal for WASM.

This function is unlikely to be stabilized until codegen backends have better support.