Function wasmer_vm::init_traps
source · pub fn init_traps()
Expand description
This function is required to be called before any WebAssembly is entered. This will configure global state such as signal handlers to prepare the process to receive wasm traps.
This function must not only be called globally once before entering
WebAssembly but it must also be called once-per-thread that enters
WebAssembly. Currently in wasmer’s integration this function is called on
creation of a Store
.