Lines Matching refs:reactions
49 JSHandle<ResolvingFunctionsRecord> reactions = factory->NewResolvingFunctionsRecord();
50 reactions->SetResolveFunction(thread, resolve.GetTaggedValue());
51 reactions->SetRejectFunction(thread, reject.GetTaggedValue());
52 return reactions;
61 // 2. Let reactions be the value of promise's [[PromiseFulfillReactions]] internal slot.
62 JSHandle<TaggedQueue> reactions(thread, promise->GetPromiseFulfillReactions());
71 // 7. Return TriggerPromiseReactions(reactions, reason).
72 return TriggerPromiseReactions(thread, reactions, value);
138 // 2. Let reactions be the value of promise's [[PromiseRejectReactions]] internal slot.
139 JSHandle<TaggedQueue> reactions(thread, TaggedQueue::Cast(promise->GetPromiseRejectReactions().GetTaggedObject()));
152 // 8. Return TriggerPromiseReactions(reactions, reason).
153 return TriggerPromiseReactions(thread, reactions, reason);
156 JSTaggedValue JSPromise::TriggerPromiseReactions(JSThread *thread, const JSHandle<TaggedQueue> &reactions,
159 // 1. Repeat for each reaction in reactions, in original insertion order
167 while (!reactions->Empty()) {
168 reaction.Update(reactions->Pop(thread));