From 982dc0b441738af6f96969a7d12d906272693a98 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 10 May 2023 04:21:53 -0700 Subject: Implement `BuildArtifact` --- src/bun.js/webcore/blob.zig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/bun.js/webcore/blob.zig') 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(); + } } }, -- cgit v1.2.3