mirror of
https://github.com/codedread/bitjs
synced 2025-10-05 02:19:24 +02:00
Add some unit tests for unarchivers. Provide a way to disconnect the impl from the host (for unit tests).
This commit is contained in:
parent
eba7042abe
commit
cf26e0a2de
17 changed files with 211 additions and 13 deletions
|
@ -22,7 +22,6 @@ export class ByteStream {
|
|||
*/
|
||||
constructor(ab, opt_offset, opt_length) {
|
||||
if (!(ab instanceof ArrayBuffer)) {
|
||||
console.error(typeof ab);
|
||||
throw 'Error! ByteStream constructed with an invalid ArrayBuffer object';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue