Home | History | Annotate | Download | only in js

Lines Matching refs:resolution

242 function ResolvePromise(promise, resolution) {
243 if (resolution === promise) {
244 return RejectPromise(promise, MakeTypeError(kPromiseCyclic, resolution));
246 if (IS_RECEIVER(resolution)) {
249 var then = resolution.then;
254 // Resolution is a native promise and if it's already resolved or
255 // rejected, shortcircuit the resolution procedure by directly
257 if (IsPromise(resolution) && then === PromiseThen) {
258 var thenableState = GET_PRIVATE(resolution, promiseStateSymbol);
262 var thenableValue = GET_PRIVATE(resolution, promiseResultSymbol);
268 var thenableValue = GET_PRIVATE(resolution, promiseResultSymbol);
269 if (!HAS_DEFINED_PRIVATE(resolution, promiseHasHandlerSymbol)) {
272 %PromiseRevokeReject(resolution);
275 SET_PRIVATE(resolution, promiseHasHandlerSymbol, true);
291 %_Call(then, resolution, callbacks.resolve, callbacks.reject);
306 FulfillPromise(promise, kFulfilled, resolution, promiseFulfillReactionsSymbol);