Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: Prose
  • Loading branch information
maxhfisher committed Aug 6, 2026
commit 455cbed91694e84166078794d725c4f5a03abbfa
15 changes: 7 additions & 8 deletions src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -844,14 +844,13 @@ NODE_EXTERN void SetProcessExitHandler(
std::function<void(Environment*, int)>&& handler);
NODE_EXTERN void DefaultProcessExitHandler(Environment* env, int exit_code);

// Sets a process-global handler invoked when Node.js programmatically aborts. A
// string representing the location and a message describing the reason for the
// abort may or may not be passed as a parameter to the handler. The handler
// should not return, but node will ensure that the process exits after the
// handler is called regardless of whether or not it returns. Passing nullptr
// restores the default handler. This is process-global and may be invoked
// before any Isolate or Environment exists.
// N.B. location and message can be null
// Sets a process-global handler invoked when Node.js programmatically aborts.
// Nullable strings representing the location and reason for the abort may or
// may not be passed as a parameter to the handler. The handler should not
// return, but node will ensure that the process exits after the handler is
// called regardless of whether or not it returns. Passing nullptr restores the
// default handler. This is process-global and may be invoked before any Isolate
// or Environment exists.
using AbortHandler = void (*)(const char* location, const char* message);
NODE_EXTERN void SetAbortHandler(AbortHandler handler);

Expand Down