Lines Matching refs:promise
5 #include 'src/builtins/builtins-promise.h'
6 #include 'src/builtins/builtins-promise-gen.h'
8 namespace promise {
75 // 6. Let promise be ? PromiseResolve(C, result).
76 const promise = PromiseResolve(constructor, result);
82 // 8. Return ? Invoke(promise, "then", « thrower »).
83 return UnsafeCast<JSAny>(InvokeThen(nativeContext, promise, thrower));
122 // 6. Let promise be ? PromiseResolve(C, result).
123 const promise = PromiseResolve(constructor, result);
129 // 8. Return ? Invoke(promise, "then", « valueThunk »).
130 return UnsafeCast<JSAny>(InvokeThen(nativeContext, promise, valueThunk));
166 // 1. Let promise be the this value.
167 // 2. If Type(promise) is not Object, throw a TypeError exception.
171 // 3. Let C be ? SpeciesConstructor(promise, %Promise%).
214 // 7. Return ? Invoke(promise, "then", « thenFinally, catchFinally »).