5#ifndef INCLUDE_V8_PROMISE_H_
6#define INCLUDE_V8_PROMISE_H_
16#ifndef V8_PROMISE_INTERNAL_FIELD_COUNT
18#define V8_PROMISE_INTERNAL_FIELD_COUNT 0
56#ifdef V8_ENABLE_CHECKS
64 static void CheckCast(
Value* obj);
112#ifdef V8_ENABLE_CHECKS
115 return static_cast<Promise*
>(value);
122 static void CheckCast(
Value* obj);
158 : promise_(promise), event_(event), value_(value) {}
Local< Promise > GetPromise()
static V8_INLINE Resolver * Cast(Value *value)
static V8_WARN_UNUSED_RESULT MaybeLocal< Resolver > New(Local< Context > context)
V8_WARN_UNUSED_RESULT Maybe< bool > Reject(Local< Context > context, Local< Value > value)
V8_WARN_UNUSED_RESULT Maybe< bool > Resolve(Local< Context > context, Local< Value > value)
V8_WARN_UNUSED_RESULT MaybeLocal< Promise > Then(Local< Context > context, Local< Function > on_fulfilled, Local< Function > on_rejected)
V8_WARN_UNUSED_RESULT MaybeLocal< Promise > Catch(Local< Context > context, Local< Function > handler)
V8_WARN_UNUSED_RESULT MaybeLocal< Promise > Then(Local< Context > context, Local< Function > handler)
static V8_INLINE Promise * Cast(Value *value)
PromiseRejectMessage(Local< Promise > promise, PromiseRejectEvent event, Local< Value > value)
V8_INLINE PromiseRejectEvent GetEvent() const
V8_INLINE Local< Value > GetValue() const
V8_INLINE Local< Promise > GetPromise() const
void(*)(PromiseRejectMessage message) PromiseRejectCallback
void(*)(PromiseHookType type, Local< Promise > promise, Local< Value > parent) PromiseHook
@ kPromiseRejectAfterResolved
@ kPromiseHandlerAddedAfterReject
@ kPromiseRejectWithNoHandler
@ kPromiseResolveAfterResolved
#define V8_PROMISE_INTERNAL_FIELD_COUNT
#define V8_WARN_UNUSED_RESULT