Function wasmer_vm::resume_panic[][src]

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.