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:
calixteman 2026-04-09 14:00:52 +02:00 committed by GitHub
commit b5f52c49d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -190,6 +190,7 @@ class ChunkedStream extends Stream {
if (strEnd > this.progressiveDataLength) {
this.ensureRange(pos, strEnd);
}
this.pos = strEnd;
return bytes.subarray(pos, strEnd);
}