From e4d660af86b95254b8b49de948923d4e1f4769f6 Mon Sep 17 00:00:00 2001 From: Niklas Wenzel Date: Wed, 19 Mar 2025 11:20:22 +0100 Subject: [PATCH] docs: fix code example in breaking-changes.md (#46093) --- docs/breaking-changes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/breaking-changes.md b/docs/breaking-changes.md index 45dcfdb37ada..6546293be547 100644 --- a/docs/breaking-changes.md +++ b/docs/breaking-changes.md @@ -22,7 +22,7 @@ rejection occurs instead of crashing the process. To restore the previous behavior, you can use: ```js -process.on('uncaughtException', () => { +process.on('unhandledRejection', () => { process.exit(1) }) ```