You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
An exit listener that throws replaces the exit code with 1 #44018
Node uses 1 only when no exit code is set. Bun stores 1 over the code that is set. The error is thrown after beforeExit was dispatched, so VirtualMachine::uncaught_exception (src/jsc/VirtualMachine.rs) prints it and calls the exit function with 1, and Bun__Process__exit (src/runtime/node/node_process.rs) stores that code.
#42032 changes the process.exit(7) row to 7. It does not change the other two rows. #38116 does not change this path.
Activity
Jarred-Sumner commentedon Oct 8, 2026
Use handoff tool. GitHub issues are for user-facing issues and a user did not run into this issue