(value)
| 32 | } |
| 33 | |
| 34 | export function assertUint8Array(value) { |
| 35 | if (!isUint8Array(value)) { |
| 36 | throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof value}\``); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | export function assertUint8ArrayOrArrayBuffer(value) { |
| 41 | if (!isUint8ArrayOrArrayBuffer(value)) { |
no test coverage detected