We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c6e639 commit ed34b09Copy full SHA for ed34b09
src/reader.js
@@ -306,6 +306,8 @@ Reader.prototype.bytes = function read_bytes() {
306
throw indexOutOfRange(this, length);
307
308
this.pos += length;
309
+ if (Array.isArray(this.buf)) // plain array
310
+ return this.buf.slice(start, end);
311
return start === end // fix for IE 10/Win8 and others' subarray returning array of size 1
312
? new this.buf.constructor(0)
313
: this._slice.call(this.buf, start, end);
0 commit comments