From d09050127fa5e4682387f8a8623965bab071ee91 Mon Sep 17 00:00:00 2001 From: Kai Tamkun Date: Mon, 18 Nov 2024 12:09:15 -0800 Subject: [PATCH] Change Windows crash behavior --- src/crash_handler.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/crash_handler.zig b/src/crash_handler.zig index 34ba5eb182..22c27e92bc 100644 --- a/src/crash_handler.zig +++ b/src/crash_handler.zig @@ -1415,7 +1415,9 @@ fn report(url: []const u8) void { fn crash() noreturn { switch (bun.Environment.os) { .windows => { - std.posix.abort(); + // This exit code is what Node.js uses when it calls + // abort. This is relied on by their Node-API tests. + bun.C.quick_exit(0x80000003); }, else => { // Install default handler so that the tkill below will terminate.