diff options
author | 2022-04-01 23:39:05 -0700 | |
---|---|---|
committer | 2022-04-01 23:39:05 -0700 | |
commit | 4592b1ccb57b00bbbffb1448609a70af0d362777 (patch) | |
tree | 0c037dc6b7183fded52c852b2ec832766b475221 | |
parent | 9bfd1801aab716718654ef346bd7ea362d208804 (diff) | |
download | bun-4592b1ccb57b00bbbffb1448609a70af0d362777.tar.gz bun-4592b1ccb57b00bbbffb1448609a70af0d362777.tar.zst bun-4592b1ccb57b00bbbffb1448609a70af0d362777.zip |
[bun.js] Bring back file resolution
-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 { |