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.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bun.js/webcore/blob.zig b/src/bun.js/webcore/blob.zig
index 4005a6bcc..54696495a 100644
--- a/src/bun.js/webcore/blob.zig
+++ b/src/bun.js/webcore/blob.zig
@@ -3267,6 +3267,15 @@ pub const Blob = struct {
} else {
return blob.dupe();
}
+ } else if (top_value.as(JSC.API.BuildArtifact)) |build| {
+ if (comptime move) {
+ // I don't think this case should happen?
+ var blob = build.blob;
+ blob.transfer();
+ return blob;
+ } else {
+ return build.blob.dupe();
+ }
}
},