()
| 239 | |
| 240 | #[tokio::test] |
| 241 | async 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] |
| 253 | async fn async_disallows_externref_new() -> Result<()> { |
nothing calls this directly
no test coverage detected