aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/webcore/blob.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/webcore/blob.zig')
-rw-r--r--src/bun.js/webcore/blob.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bun.js/webcore/blob.zig b/src/bun.js/webcore/blob.zig
index 7036babfb..b384048ce 100644
--- a/src/bun.js/webcore/blob.zig
+++ b/src/bun.js/webcore/blob.zig
@@ -3943,7 +3943,8 @@ pub const AnyBlob = union(enum) {
pub fn isDetached(this: *const AnyBlob) bool {
return switch (this.*) {
.Blob => |blob| blob.isDetached(),
- else => this.slice().len == 0,
+ .InternalBlob => this.InternalBlob.bytes.items.len == 0,
+ .WTFStringImpl => this.WTFStringImpl.length() == 0,
};
}