electron/spec/fixtures/module/unhandled-rejection.js
Kevin Sawicki 8a9f2261d0 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
2016-06-21 00:54:15 +00:00

3 lines
80 B
JavaScript

exports.reject = function () {
return Promise.reject(new Error('rejected'))
}