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

Function async_disallows_exnref_new

tests/all/missing_async.rs:241–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239
240#[tokio::test]
241async fn async_disallows_exnref_new() -> Result<()> {
242 let mut store = async_limiter_store();
243 let ty = ExnType::new(store.engine(), [])?;
244 let pre = ExnRefPre::new(&mut store, ty);
245 let fty = FuncType::new(store.engine(), [], []);
246 let tag = Tag::new(&mut store, &TagType::new(fty))?;
247 assert!(ExnRef::new(&mut store, &pre, &tag, &[]).is_err());
248 ExnRef::new_async(&mut store, &pre, &tag, &[]).await?;
249 Ok(())
250}
251
252#[tokio::test]
253async fn async_disallows_externref_new() -> Result<()> {

Callers

nothing calls this directly

Calls 4

async_limiter_storeFunction · 0.85
OkFunction · 0.85
newFunction · 0.50
engineMethod · 0.45

Tested by

no test coverage detected