diff options
-rw-r--r-- | src/bun.js/webcore/response.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bun.js/webcore/response.zig b/src/bun.js/webcore/response.zig index 81b0d7f14..99205d440 100644 --- a/src/bun.js/webcore/response.zig +++ b/src/bun.js/webcore/response.zig @@ -5075,10 +5075,11 @@ pub const Body = struct { pub fn clone(this: *Value, globalThis: *JSC.JSGlobalObject) Value { if (this.* == .InternalBlob) { + var internal_blob = this.InternalBlob; this.* = .{ .Blob = Blob.init( - this.InternalBlob.toOwnedSlice(), - this.InternalBlob.bytes.allocator, + internal_blob.toOwnedSlice(), + internal_blob.bytes.allocator, globalThis, ), }; |