diff options
Diffstat (limited to 'src/bun.js/builtins/js/ReadableStreamInternals.js')
-rw-r--r-- | src/bun.js/builtins/js/ReadableStreamInternals.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/builtins/js/ReadableStreamInternals.js b/src/bun.js/builtins/js/ReadableStreamInternals.js index def4d51a3..dfb9561ce 100644 --- a/src/bun.js/builtins/js/ReadableStreamInternals.js +++ b/src/bun.js/builtins/js/ReadableStreamInternals.js @@ -1879,7 +1879,7 @@ function lazyLoadStream(stream, autoAllocateChunkSize) { (err) => controller.error(err) ); } else if (typeof result === 'number') { - if (view && view.byteLength === result) { + if (view && view.byteLength === result && view.buffer === controller.byobRequest?.view?.buffer) { controller.byobRequest.respondWithNewView(view); } else { controller.byobRequest.respond(result); |