(&self, f: F)
| 164 | } |
| 165 | |
| 166 | pub(crate) fn with<F, R>(&self, f: F) -> Result<R, JsValue> |
| 167 | where |
| 168 | F: FnOnce(&StoredVirtualMachine) -> R, |
| 169 | { |
| 170 | self.assert_valid()?; |
| 171 | Ok(self.with_unchecked(f)) |
| 172 | } |
| 173 | |
| 174 | pub(crate) fn with_vm<F, R>(&self, f: F) -> Result<R, JsValue> |
| 175 | where |
no test coverage detected