Lines Matching defs:Promise
22 * An instance of the built-in Promise constructor (ES6 draft).
24 class V8_EXPORT Promise : public Object {
43 Local<Promise> GetPromise();
59 return static_cast<Promise::Resolver*>(value);
73 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context,
76 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context,
79 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context,
90 * Returns the content of the [[PromiseResult]] field. The Promise must not
111 V8_INLINE static Promise* Cast(Value* value) {
115 return static_cast<Promise*>(value);
121 Promise();
128 * case of Promise.then or in the intermediate promises created by
129 * Promise.{race, all}/AsyncFunctionAwait, we pass the parent promise
143 using PromiseHook = void (*)(PromiseHookType type, Local<Promise> promise,
146 // --- Promise Reject Callback ---
156 PromiseRejectMessage(Local<Promise> promise, PromiseRejectEvent event,
160 V8_INLINE Local<Promise> GetPromise() const { return promise_; }
165 Local<Promise> promise_;