mirror of
https://github.com/electron/electron.git
synced 2026-01-29 09:18:18 -05:00
* 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
4 lines
80 B
JavaScript
4 lines
80 B
JavaScript
exports.reject = function () {
|
|
return Promise.reject(new Error('rejected'))
|
|
}
|