mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
docs: fix code example in breaking-changes.md (#46093)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user