mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
bun run zig-format
This commit is contained in:
committed by
github-actions[bot]
parent
7e3bf269fd
commit
7f330141ee
@@ -22,4 +22,4 @@ pub const ErrorCode = enum(ErrorCodeInt) {
|
||||
comptime {
|
||||
@export(&ErrorCode.ParserError, .{ .name = "Zig_ErrorCodeParserError" });
|
||||
@export(&ErrorCode.JSErrorObject, .{ .name = "Zig_ErrorCodeJSErrorObject" });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,4 +44,4 @@ pub fn Errorable(comptime Type: type) type {
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,4 +28,4 @@ pub const EventType = enum(u8) {
|
||||
else => "event",
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -15,4 +15,4 @@ pub const JSErrorCode = enum(u8) {
|
||||
StackOverflow = 253,
|
||||
UserErrorCode = 254,
|
||||
_,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -13,4 +13,4 @@ pub const JSRuntimeType = enum(u16) {
|
||||
BigInt = 0x200,
|
||||
|
||||
_,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,4 +77,4 @@ pub const Process = extern struct {
|
||||
.name = Export[8].symbol_name,
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -33,4 +33,4 @@ pub const ResolvedSource = extern struct {
|
||||
bytecode_cache_size: usize = 0,
|
||||
|
||||
pub const Tag = @import("ResolvedSourceTag").ResolvedSourceTag;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -8,4 +8,4 @@ pub const ZigErrorType = extern struct {
|
||||
|
||||
code: ErrorCode,
|
||||
ptr: ?*anyopaque,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -39,4 +39,4 @@ pub const ZigStackFrameCode = enum(u8) {
|
||||
else => "",
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -29,4 +29,4 @@ pub const ZigStackFramePosition = extern struct {
|
||||
try writer.writeInt(this.line.zeroBased());
|
||||
try writer.writeInt(this.column.zeroBased());
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user