mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 06:12:08 +00:00
fix: check if we are crashing before exiting gracefully (#12865)
This commit is contained in:
@@ -1075,7 +1075,7 @@ fn expectPrintedJSON(_contents: string, expected: string) !void {
|
||||
const expr = try ParseJSON(&source, &log, default_allocator);
|
||||
|
||||
if (log.msgs.items.len > 0) {
|
||||
Global.panic("--FAIL--\nExpr {s}\nLog: {s}\n--FAIL--", .{ expr, log.msgs.items[0].data.text });
|
||||
Output.panic("--FAIL--\nExpr {s}\nLog: {s}\n--FAIL--", .{ expr, log.msgs.items[0].data.text });
|
||||
}
|
||||
|
||||
const buffer_writer = try js_printer.BufferWriter.init(default_allocator);
|
||||
|
||||
Reference in New Issue
Block a user