(stacks: &Arc<Mutex<Vec<WasmBacktrace>>>, store: impl AsContext)
| 869 | |
| 870 | let stacks = Arc::new(Mutex::new(vec![])); |
| 871 | fn capture_stack(stacks: &Arc<Mutex<Vec<WasmBacktrace>>>, store: impl AsContext) { |
| 872 | let mut stacks = stacks.lock().unwrap(); |
| 873 | stacks.push(wasmtime::WasmBacktrace::force_capture(store)); |
| 874 | } |
| 875 | |
| 876 | linker1.func_wrap_async("", "host_capture_stack", { |
| 877 | let stacks = stacks.clone(); |
no test coverage detected