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) }) ```