Closed nkochakian closed 7 years ago
https://github.com/darrachequesne/notepack/blob/2.1.0/browser/decode.js#L12
It looks like this is supposed to be new DataView(this.buffer);
new DataView(this.buffer);
The current version uses the wrong buffer if !(buffer instanceof ArrayBuffer) and ArrayBuffer.isView(buffer) is true.
!(buffer instanceof ArrayBuffer)
ArrayBuffer.isView(buffer)
https://github.com/darrachequesne/notepack/blob/2.1.0/browser/decode.js#L12
It looks like this is supposed to be
new DataView(this.buffer);
The current version uses the wrong buffer if
!(buffer instanceof ArrayBuffer)
andArrayBuffer.isView(buffer)
is true.