diff options
author | 2023-05-10 04:21:53 -0700 | |
---|---|---|
committer | 2023-05-10 04:21:53 -0700 | |
commit | 982dc0b441738af6f96969a7d12d906272693a98 (patch) | |
tree | a141462971fcfc146f4fccbdc2826e7b1406bda4 /src/bun.js/webcore/blob.zig | |
parent | 1f8c60123d504585d8777df107473695918e47d0 (diff) | |
download | bun-982dc0b441738af6f96969a7d12d906272693a98.tar.gz bun-982dc0b441738af6f96969a7d12d906272693a98.tar.zst bun-982dc0b441738af6f96969a7d12d906272693a98.zip |
Implement `BuildArtifact`
Diffstat (limited to 'src/bun.js/webcore/blob.zig')
-rw-r--r-- | src/bun.js/webcore/blob.zig | 9 |
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(); + } } }, |