Fix make headers

This commit is contained in:
Jarred Sumner
2023-03-07 21:46:38 -08:00
parent 7ac6eab209
commit 43b0d03482

View File

@@ -1773,6 +1773,8 @@ pub const ArrayBuffer = extern struct {
}
pub fn createEmpty(globalThis: *JSC.JSGlobalObject, comptime kind: JSC.JSValue.JSType) JSValue {
JSC.markBinding(@src());
return switch (comptime kind) {
.Uint8Array => Bun__createUint8ArrayForCopy(globalThis, null, 0, false),
.ArrayBuffer => Bun__createArrayBufferForCopy(globalThis, null, 0),