mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-08-02 02:36:06 -04:00
debug: Use normal crash report assertion in debug
I don't know why I thought debug should `unreahcable` while release should generate a crash report. The crash report always contains more info and whenever I encounter a failed assertion in debug, the first thing I do is remove the unreachable to get the more complete crash report. (The crash report path skips sending the crash report in debug builds already)
This commit is contained in:
@@ -273,9 +273,6 @@ fn dumpWPT(frame: *Frame, writer: *std.Io.Writer) !void {
|
||||
|
||||
pub inline fn assert(ok: bool, comptime ctx: []const u8, args: anytype) void {
|
||||
if (!ok) {
|
||||
if (comptime IS_DEBUG) {
|
||||
unreachable;
|
||||
}
|
||||
assertionFailure(ctx, args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user