diff options
-rw-r--r-- | src/javascript/jsc/webcore/response.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/javascript/jsc/webcore/response.zig b/src/javascript/jsc/webcore/response.zig index 8d525f211..494ca1609 100644 --- a/src/javascript/jsc/webcore/response.zig +++ b/src/javascript/jsc/webcore/response.zig @@ -1298,7 +1298,9 @@ pub const Blob = struct { }; } - return Blob.initWithStore(Blob.Store.initFile(path, null, bun.default_allocator) catch unreachable, globalThis); + const result = Blob.initWithStore(Blob.Store.initFile(path, null, bun.default_allocator) catch unreachable, globalThis); + VirtualMachine.vm.putFileBlob(path, result.store.?) catch unreachable; + return result; } pub const Store = struct { |