Constant wasmtime_cranelift_shared::ALWAYS_TRAP_CODE
source · pub const ALWAYS_TRAP_CODE: u16 = 100;
Expand description
A custom code with TrapCode::User
which is used by always-trap shims which
indicates that, as expected, the always-trapping function indeed did trap.
This effectively provides a better error message as opposed to a bland
“unreachable code reached”