(self, store: impl wasmtime::AsContextMut)
| 60 | } |
| 61 | |
| 62 | pub(crate) fn into_val(self, store: impl wasmtime::AsContextMut) -> Val { |
| 63 | match self { |
| 64 | WasmValue::Primitive(v) => v, |
| 65 | WasmValue::Exn(Some(owned)) => Val::ExnRef(Some(owned.to_rooted(store))), |
| 66 | WasmValue::Exn(None) => Val::ExnRef(None), |
| 67 | WasmValue::Func(Some(f)) => Val::FuncRef(Some(f)), |
| 68 | WasmValue::Func(None) => Val::FuncRef(None), |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | /// Representation of an async debug event that the debugger is |
no test coverage detected