mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
6 lines
112 B
JavaScript
6 lines
112 B
JavaScript
exports.reject = function (promise) {
|
|
return promise.then(function () {
|
|
throw Error('rejected');
|
|
});
|
|
};
|