Fix truncating in BigIntStats (#12643)

Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2024-07-19 20:00:32 -07:00
committed by GitHub
parent 1d61676c7b
commit 03024e6b4e
7 changed files with 61 additions and 12 deletions

View File

@@ -5720,7 +5720,7 @@ function createNativeStreamReadable(Readable) {
ProcessNextTick(() => {
this.push(null);
});
return view?.byteLength ?? 0 > 0 ? view : undefined;
return (view?.byteLength ?? 0 > 0) ? view : undefined;
} else if ($isTypedArrayView(result)) {
if (result.byteLength >= this[highWaterMark] && !this[hasResized] && !isClosed) {
this[_adjustHighWaterMark]();