(ctx: &Ctx<'_>, expected_algorithm: &str)
| 161 | "Algorithm not supported", |
| 162 | )) |
| 163 | } |
| 164 | |
| 165 | pub fn algorithm_invalid_access_error<T>(ctx: &Ctx<'_>, expected_algorithm: &str) -> Result<T> { |
| 166 | Err(DOMException::invalid_access_error( |
| 167 | ctx, |
| 168 | ["Key algorithm must be ", expected_algorithm].concat(), |
| 169 | )) |
| 170 | } |
| 171 |
no test coverage detected