Lines Matching refs:promise
3490 var promise = external.Promise.resolve(inputData).then(function(data) {
3512 return promise.then(function(data) {
4362 var promise = new this.constructor(INTERNAL);
4365 unwrap(promise, resolver, this.outcome);
4367 this.queue.push(new QueueItem(promise, onFulfilled, onRejected));
4370 return promise;
4372 function QueueItem(promise, onFulfilled, onRejected) { argument
4373 this.promise = promise;
4384 handlers.resolve(this.promise, value);
4387 unwrap(this.promise, this.onFulfilled, value);
4390 handlers.reject(this.promise, value);
4393 unwrap(this.promise, this.onRejected, value);
4396 function unwrap(promise, func, value) { argument
4402 return handlers.reject(promise, e);
4404 if (returnValue === promise) {
4405 handlers.reject(promise, new TypeError('Cannot resolve promise with itself'));
4407 handlers.resolve(promise, returnValue);
4504 var promise = new this(INTERNAL);
4505 return handlers.reject(promise, reason);
4524 var promise = new this(INTERNAL);
4529 return promise;
4534 handlers.reject(promise, error);
4541 handlers.resolve(promise, values);
4561 var promise = new this(INTERNAL);
4566 return promise;
4571 handlers.resolve(promise, response);
4576 handlers.reject(promise, error);