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:
Kevin Sawicki 2016-06-20 17:54:15 -07:00 committed by Cheng Zhao
parent 74321dce74
commit 8a9f2261d0
3 changed files with 43 additions and 10 deletions

View file

@ -0,0 +1,3 @@
exports.reject = function () {
return Promise.reject(new Error('rejected'))
}