mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-18 19:24:04 +02:00
Merge pull request #21070 from Snuffleupagus/ChunkedStream-getBytes-non-length-update-pos
Update the position when calling `ChunkedStream.prototype.getBytes` without a length
This commit is contained in:
commit
b5f52c49d0
@ -190,6 +190,7 @@ class ChunkedStream extends Stream {
|
||||
if (strEnd > this.progressiveDataLength) {
|
||||
this.ensureRange(pos, strEnd);
|
||||
}
|
||||
this.pos = strEnd;
|
||||
return bytes.subarray(pos, strEnd);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user