Add default error handler to remote promises (#6151)
* Add failing spec for unhandled main process exception * Remove unused return * Use let/const instead of var * Add spec for unhandled rejection in renderer process * Prevent unhandled rejection defaul * Use once instead of on * Add default fulfilled/rejection handler to promise
This commit is contained in:
parent
74321dce74
commit
8a9f2261d0
3 changed files with 43 additions and 10 deletions
3
spec/fixtures/module/unhandled-rejection.js
vendored
Normal file
3
spec/fixtures/module/unhandled-rejection.js
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
exports.reject = function () {
|
||||
return Promise.reject(new Error('rejected'))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue