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

Function async_disallows_array_ref_new_fixed

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

Source from the content-addressed store, hash-verified

226
227#[tokio::test]
228async fn async_disallows_array_ref_new_fixed() -> Result<()> {
229 let mut store = async_limiter_store();
230 let ty = ArrayType::new(
231 store.engine(),
232 FieldType::new(Mutability::Var, StorageType::I8),
233 );
234 let pre = ArrayRefPre::new(&mut store, ty);
235 assert!(ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(0)]).is_err());
236 ArrayRef::new_fixed_async(&mut store, &pre, &[Val::I32(0)]).await?;
237 Ok(())
238}
239
240#[tokio::test]
241async fn async_disallows_exnref_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