MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / wasm_trap_trace

Function wasm_trap_trace

crates/c-api/src/trap.rs:158–160  ·  view source on GitHub ↗
(raw: &'a wasm_trap_t, out: &mut wasm_frame_vec_t<'a>)

Source from the content-addressed store, hash-verified

156
157#[unsafe(no_mangle)]
158pub extern "C" fn wasm_trap_trace<'a>(raw: &'a wasm_trap_t, out: &mut wasm_frame_vec_t<'a>) {
159 error_trace(&raw.error, out)
160}
161
162pub(crate) fn error_trace<'a>(error: &'a Error, out: &mut wasm_frame_vec_t<'a>) {
163 let trace = match error.downcast_ref::<WasmBacktrace>() {

Callers 1

traceMethod · 0.85

Calls 1

error_traceFunction · 0.85

Tested by

no test coverage detected