bun run zig-format

This commit is contained in:
Jarred-Sumner
2025-03-01 07:54:00 +00:00
committed by github-actions[bot]
parent 7e3bf269fd
commit 7f330141ee
13 changed files with 15 additions and 15 deletions

View File

@@ -22,4 +22,4 @@ pub const ErrorCode = enum(ErrorCodeInt) {
comptime {
@export(&ErrorCode.ParserError, .{ .name = "Zig_ErrorCodeParserError" });
@export(&ErrorCode.JSErrorObject, .{ .name = "Zig_ErrorCodeJSErrorObject" });
}
}

View File

@@ -44,4 +44,4 @@ pub fn Errorable(comptime Type: type) type {
};
}
};
}
}

View File

@@ -28,4 +28,4 @@ pub const EventType = enum(u8) {
else => "event",
};
}
};
};

View File

@@ -7,7 +7,7 @@ const JSValue = JSC.JSValue;
pub const Exception = opaque {
extern fn JSC__Exception__getStackTrace(this: *Exception, global: *JSGlobalObject, stack: *ZigStackTrace) void;
extern fn JSC__Exception__asJSValue(this: *Exception) JSValue;
pub fn getStackTrace(this: *Exception, global: *JSGlobalObject, stack: *ZigStackTrace) void {
JSC__Exception__getStackTrace(this, global, stack);
}
@@ -15,4 +15,4 @@ pub const Exception = opaque {
pub fn value(this: *Exception) JSValue {
return JSC__Exception__asJSValue(this);
}
};
};

View File

@@ -15,4 +15,4 @@ pub const JSErrorCode = enum(u8) {
StackOverflow = 253,
UserErrorCode = 254,
_,
};
};

View File

@@ -13,4 +13,4 @@ pub const JSRuntimeType = enum(u16) {
BigInt = 0x200,
_,
};
};

View File

@@ -26,4 +26,4 @@ pub export fn Bun__LoadLibraryBunString(str: *bun.String) ?*anyopaque {
buf[data.len] = 0;
const LOAD_WITH_ALTERED_SEARCH_PATH = 0x00000008;
return bun.windows.LoadLibraryExW(buf[0..data.len :0].ptr, null, LOAD_WITH_ALTERED_SEARCH_PATH);
}
}

View File

@@ -77,4 +77,4 @@ pub const Process = extern struct {
.name = Export[8].symbol_name,
});
}
};
};

View File

@@ -33,4 +33,4 @@ pub const ResolvedSource = extern struct {
bytecode_cache_size: usize = 0,
pub const Tag = @import("ResolvedSourceTag").ResolvedSourceTag;
};
};

View File

@@ -1,8 +1,8 @@
/// Opaque representation of a JavaScript source provider
pub const SourceProvider = opaque {
extern fn JSC__SourceProvider__deref(*SourceProvider) void;
pub fn deref(provider: *SourceProvider) void {
JSC__SourceProvider__deref(provider);
}
};
};

View File

@@ -8,4 +8,4 @@ pub const ZigErrorType = extern struct {
code: ErrorCode,
ptr: ?*anyopaque,
};
};

View File

@@ -39,4 +39,4 @@ pub const ZigStackFrameCode = enum(u8) {
else => "",
};
}
};
};

View File

@@ -29,4 +29,4 @@ pub const ZigStackFramePosition = extern struct {
try writer.writeInt(this.line.zeroBased());
try writer.writeInt(this.column.zeroBased());
}
};
};