mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 22:32:06 +00:00
Fix make headers
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user