aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/webcore/streams.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bun.js/webcore/streams.zig b/src/bun.js/webcore/streams.zig
index 5dc4ea830..f2c5914ef 100644
--- a/src/bun.js/webcore/streams.zig
+++ b/src/bun.js/webcore/streams.zig
@@ -4433,6 +4433,10 @@ pub const FileReader = struct {
var readable_file = File{ .loop = this.globalThis().bunVM().eventLoop() };
const result = readable_file.start(&blob.data.file);
+ if (result == .empty) {
+ this.lazy_readable = .{ .empty = {} };
+ return result;
+ }
if (result != .ready) {
return result;
}