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

Function assert_my_externref

tests/all/func.rs:1612–1622  ·  view source on GitHub ↗
(store: impl AsContext, externref: Option<Rooted<ExternRef>>)

Source from the content-addressed store, hash-verified

1610 Ok(())
1611 }
1612 fn assert_my_externref(store: impl AsContext, externref: Option<Rooted<ExternRef>>) {
1613 assert_eq!(
1614 externref
1615 .unwrap()
1616 .data(&store)
1617 .unwrap()
1618 .unwrap()
1619 .downcast_ref(),
1620 Some(&99u32)
1621 );
1622 }
1623
1624 // funcref=null, externref=null
1625 let (a, b) = typed.call(&mut store, (None, None))?;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected