Function wasmtime_environ::lookup_trap_code
source · pub fn lookup_trap_code(section: &[u8], offset: usize) -> Option<Trap>
Expand description
Decodes the provided trap information section and attempts to find the trap
code corresponding to the offset
specified.
The section
provided is expected to have been built by
TrapEncodingBuilder
above. Additionally the offset
should be a relative
offset within the text section of the compilation image.