diff options
Diffstat (limited to 'ext/web/09_file.js')
-rw-r--r-- | ext/web/09_file.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/web/09_file.js b/ext/web/09_file.js index 79a9c41b2..94981a2f4 100644 --- a/ext/web/09_file.js +++ b/ext/web/09_file.js @@ -366,7 +366,11 @@ class Blob { const { value, done } = await AsyncGeneratorPrototypeNext( partIterator, ); - if (done) return controller.close(); + if (done) { + controller.close(); + controller.byobRequest?.respond(0); + return; + } if (TypedArrayPrototypeGetByteLength(value) > 0) { return controller.enqueue(value); } |