Lines Matching refs:promise
5 #include 'src/builtins/builtins-promise-gen.h'
7 namespace promise {
19 // https://tc39.es/ecma262/#sec-promise.prototype.then
23 // 1. Let promise be the this value.
24 // 2. If IsPromise(promise) is false, throw a TypeError exception.
25 const promise = Cast<JSPromise>(receiver) otherwise ThrowTypeError(
29 // 3. Let C be ? SpeciesConstructor(promise, %Promise%).
36 if (IsPromiseSpeciesLookupChainIntact(context, promise.map)) {
40 const constructor = SpeciesConstructor(promise, promiseFun);
46 resultPromise = promiseCapability.promise;
49 const resultJSPromise = NewJSPromise(promise);
67 // 5. Return PerformPromiseThen(promise, onFulfilled, onRejected,
70 promise, onFulfilled, onRejected, resultPromiseOrCapability);