mirror of
https://github.com/electron/electron.git
synced 2026-01-30 17:58:33 -05:00
6 lines
109 B
JavaScript
6 lines
109 B
JavaScript
exports.reject = function (promise) {
|
|
return promise.then(function () {
|
|
throw Error('rejected')
|
|
})
|
|
}
|