electron/spec-main/fixtures/module/rejected-promise.js

6 lines
109 B
JavaScript
Raw Normal View History

exports.reject = function (promise) {
return promise.then(function () {
throw Error('rejected')
})
}