Lines Matching defs:resolution
51 // 6. If SameValue(resolution, promise) is true, then
54 JSHandle<JSTaggedValue> resolution = BuiltinsBase::GetCallArg(argv, 0);
55 if (JSTaggedValue::SameValue(resolution.GetTaggedValue(), resolvePromise.GetTaggedValue())) {
57 "Resolve: The promise and resolution cannot be the same.", StackCheck::NO);
61 // 7. If Type(resolution) is not Object, then
62 // a. Return FulfillPromise(promise, resolution).
63 if (!resolution.GetTaggedValue().IsECMAObject()) {
64 JSPromise::FulfillPromise(thread, resolvePromise, resolution);
67 // 8. Let then be Get(resolution, "then").
71 JSHandle<JSTaggedValue> thenValue = JSObject::GetProperty(thread, resolution, thenKey).GetValue();
81 // a. Return FulfillPromise(promise, resolution).
83 JSPromise::FulfillPromise(thread, resolvePromise, resolution);
86 // 12. Perform EnqueueJob ("PromiseJobs", PromiseResolveThenableJob, «promise, resolution, thenAction»)
89 arguments->Set(thread, 1, resolution);