(bytes: Uint8Array, what: string)
| 76 | } |
| 77 | |
| 78 | const decodeUtf8 = (bytes: Uint8Array, what: string): string => { |
| 79 | try { |
| 80 | return textDecoder.decode(bytes) |
| 81 | } catch { |
| 82 | return fail(`Invalid UTF-8 in ${what}`) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Computes the password string for an `AuthenticationMD5Password` challenge: |
no test coverage detected