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

Method exnref_get_fields

crates/debugger/src/host/opaque.rs:457–469  ·  view source on GitHub ↗
(&mut self, exn: OwnedRooted<ExnRef>)

Source from the content-addressed store, hash-verified

455 }
456
457 async fn exnref_get_fields(&mut self, exn: OwnedRooted<ExnRef>) -> Result<Vec<WasmValue>> {
458 self.with_store(move |mut store| {
459 let fields = exn
460 .fields(&mut store)
461 .expect("reference must be rooted")
462 .collect::<Vec<Val>>();
463 fields
464 .into_iter()
465 .map(|v| WasmValue::new(&mut store, v))
466 .collect::<Result<Vec<_>>>()
467 })
468 .await?
469 }
470
471 async fn exnref_new(
472 &mut self,

Callers 1

get_valuesMethod · 0.80

Calls 6

with_storeMethod · 0.80
newFunction · 0.50
expectMethod · 0.45
fieldsMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected