diff options
author | 2022-10-21 21:07:32 -0700 | |
---|---|---|
committer | 2022-10-21 21:13:50 -0700 | |
commit | 4c136cddd7356ad1fb6e03124d7ac60079056d69 (patch) | |
tree | 727a8c2f525b46734d32c5e286477f544ca1e1ca | |
parent | b50dc40fb8bebdf1e3af66d2386f5295c8b40632 (diff) | |
download | bun-4c136cddd7356ad1fb6e03124d7ac60079056d69.tar.gz bun-4c136cddd7356ad1fb6e03124d7ac60079056d69.tar.zst bun-4c136cddd7356ad1fb6e03124d7ac60079056d69.zip |
Fix test failure
-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, ), }; |