docs: fix code example in breaking-changes.md (#46093)

This commit is contained in:
Niklas Wenzel 2025-03-19 11:20:22 +01:00 committed by GitHub
parent 2efd75e2ca
commit e4d660af86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ rejection occurs instead of crashing the process.
To restore the previous behavior, you can use: To restore the previous behavior, you can use:
```js ```js
process.on('uncaughtException', () => { process.on('unhandledRejection', () => {
process.exit(1) process.exit(1)
}) })
``` ```