diff options
Diffstat (limited to 'src/bun.js/webcore/blob.zig')
-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 0d6dcbc26..7e0b7f24b 100644 --- a/src/bun.js/webcore/blob.zig +++ b/src/bun.js/webcore/blob.zig @@ -3798,7 +3798,7 @@ pub const AnyBlob = union(enum) { return JSValue.jsNull(); } - return str.toJS(global).parseJSON(global); + return str.toJSForParseJSON(global); }, } } @@ -3867,7 +3867,7 @@ pub const AnyBlob = union(enum) { this.* = .{ .Blob = .{} }; defer str.deref(); - const out_bytes = str.toUTF8(bun.default_allocator); + const out_bytes = str.toUTF8WithoutRef(bun.default_allocator); if (out_bytes.isAllocated()) { const value = JSC.ArrayBuffer.fromBytes( @constCast(out_bytes.slice()), |