* @ngdoc method * @name $q#reject * @kind function * * @description * Creates a promise that is resolved as rejected with the specified `reason`. This api should be * used to forward rejection in a chain of promises. If you are dealing with the last promise in * a promise chain,
(reason)
| 17490 | * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`. |
| 17491 | */ |
| 17492 | function reject(reason) { |
| 17493 | var result = new Promise(); |
| 17494 | rejectPromise(result, reason); |
| 17495 | return result; |
| 17496 | } |
| 17497 | |
| 17498 | function handleCallback(value, resolver, callback) { |
| 17499 | var callbackOutput = null; |
no test coverage detected