mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
Fix two parser bugs
Former-commit-id: 884b0e3e31e562e4f0e0676819c442842ba9040b
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const std = @import("std");
|
||||
const logger = @import("logger.zig");
|
||||
const root = @import("root");
|
||||
usingnamespace @import("global.zig");
|
||||
|
||||
const USERLAND_PANIC_MESSAGE = "iNtErNaL sErVeR eRrOr";
|
||||
|
||||
@@ -47,7 +48,9 @@ pub fn NewPanicHandler(panic_func: fn handle_panic(msg: []const u8, error_return
|
||||
.log = log,
|
||||
};
|
||||
}
|
||||
pub fn handle_panic(msg: []const u8, error_return_type: ?*std.builtin.StackTrace) callconv(.Inline) noreturn {
|
||||
pub inline fn handle_panic(msg: []const u8, error_return_type: ?*std.builtin.StackTrace) noreturn {
|
||||
Output.flush();
|
||||
|
||||
if (@This().Singleton) |singleton| {
|
||||
singleton.panic_count += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user