wasmer_vm

Function resume_panic

Source
pub unsafe fn resume_panic(payload: Box<dyn Any + Send>) -> !
Expand description

Carries a Rust panic across wasm code and resumes the panic on the other side.

ยงSafety

Only safe to call when wasm code is on the stack, aka catch_traps must have been previously called and not returned. Additionally no Rust destructors may be on the stack. They will be skipped and not executed.