(&mut self, exn: OwnedRooted<ExnRef>)
| 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, |
no test coverage detected