diff options
author | 2023-05-30 19:39:12 -0700 | |
---|---|---|
committer | 2023-05-30 19:39:12 -0700 | |
commit | 0aab11a95d1e81f786a25a03d730987181f4d661 (patch) | |
tree | c9241838162ef8c2af67ad0331e76d37b90bb5b0 | |
parent | 7376ae6980b1cd5fc39ad90c6d17b328bdc7cf0a (diff) | |
download | bun-0aab11a95d1e81f786a25a03d730987181f4d661.tar.gz bun-0aab11a95d1e81f786a25a03d730987181f4d661.tar.zst bun-0aab11a95d1e81f786a25a03d730987181f4d661.zip |
always clone these
-rw-r--r-- | src/bun.js/webcore/blob.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/webcore/blob.zig b/src/bun.js/webcore/blob.zig index 591150e12..dd19e1da0 100644 --- a/src/bun.js/webcore/blob.zig +++ b/src/bun.js/webcore/blob.zig @@ -2548,13 +2548,13 @@ pub const Blob = struct { ) callconv(.C) JSValue { if (this.content_type.len > 0) { if (this.content_type_allocated) { - return ZigString.init(this.content_type).toValue(globalThis); + return ZigString.init(this.content_type).toValueGC(globalThis); } return ZigString.init(this.content_type).toValueGC(globalThis); } if (this.store) |store| { - return ZigString.init(store.mime_type.value).toValue(globalThis); + return ZigString.init(store.mime_type.value).toValueGC(globalThis); } return ZigString.Empty.toValue(globalThis); |