(&mut self, ctx: Ctx<'js>)
| 94 | #[rquickjs::methods] |
| 95 | impl<'js> CryptoKey<'js> { |
| 96 | #[qjs(constructor)] |
| 97 | fn constructor(ctx: Ctx<'_>) -> Result<Self> { |
| 98 | Err(Exception::throw_type(&ctx, "Illegal constructor")) |
| 99 | } |
| 100 | |
| 101 | #[qjs(get, rename = "type")] |
| 102 | pub fn get_type(&self) -> &str { |
| 103 | self.kind.as_str() |
| 104 | } |
| 105 | |
| 106 | #[qjs(get)] |
nothing calls this directly
no test coverage detected