(bstr: unknown)
| 272 | } |
| 273 | |
| 274 | function bytestringToString(bstr: unknown): string { |
| 275 | if (!(bstr instanceof Uint8Array)) { |
| 276 | throw new Error('Bytestring expected'); |
| 277 | } |
| 278 | return new TextDecoder('utf-8').decode(bstr); |
| 279 | } |
no outgoing calls
no test coverage detected