Lines Matching defs:reject
41 // 5. Let reject be a new built-in function object as defined in Promise Reject Functions (25.4.1.3.1).
42 JSHandle<JSPromiseReactionsFunction> reject = factory->CreateJSPromiseReactionsFunction(
44 // 6. Set the [[Promise]] internal slot of reject to promise.
45 reject->SetPromise(thread, promise);
46 // 7. Set the [[AlreadyResolved]] internal slot of reject to alreadyResolved.
47 reject->SetAlreadyResolved(thread, record);
48 // 8. Return a new Record { [[Resolve]]: resolve, [[Reject]]: reject }.
51 reactions->SetRejectFunction(thread, reject.GetTaggedValue());
109 THROW_TYPE_ERROR_AND_RETURN(thread, "NewPromiseCapability: reject is not a callable function!",
148 // 7. When a promise is rejected without any handlers, it is called with its operation argument set to "reject".