docs: fix code example in breaking-changes.md (#46093)
This commit is contained in:
parent
2efd75e2ca
commit
e4d660af86
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue