You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the BitView constructor is invoked with (non-zero) byteOffset and no byteLength, it fails with Uncaught RangeError: Invalid typed array length error.
To replicate:
$ node
> BitView = require('bit-buffer').BitView;> array = new ArrayBuffer(8);> bv = new BitView(array, 4);
Uncaught RangeError: Invalid typed array length: 8
at new Uint8Array (<anonymous>)
at new BitView (.../node_modules/bit-buffer/bit-buffer.js:22:15)
I think the solution would be to change line 20 to
If the BitView constructor is invoked with (non-zero) byteOffset and no byteLength, it fails with
Uncaught RangeError: Invalid typed array length
error.To replicate:
I think the solution would be to change line 20 to
The text was updated successfully, but these errors were encountered: