Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index 9ea30743bdf56db47473f3197976c778ffac698f..7892ff6d1824eba67b0661b69dc44c1d0c8b21ee 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -385,6 +385,7 @@ typedef List<HeapObject*> DebugObjectCache; |
V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ |
V(InterruptCallback, api_interrupt_callback, NULL) \ |
V(void*, api_interrupt_callback_data, NULL) \ |
+ V(PromiseRejectCallback, promise_reject_callback, NULL) \ |
ISOLATE_INIT_SIMULATOR_LIST(V) |
#define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ |
@@ -1102,6 +1103,10 @@ class Isolate { |
void RemoveCallCompletedCallback(CallCompletedCallback callback); |
void FireCallCompletedCallback(); |
+ void SetPromiseRejectCallback(PromiseRejectCallback callback); |
+ void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, |
+ v8::PromiseRejectEvent event); |
+ |
void EnqueueMicrotask(Handle<Object> microtask); |
void RunMicrotasks(); |
@@ -1216,6 +1221,9 @@ class Isolate { |
// then return true. |
bool PropagatePendingExceptionToExternalTryCatch(); |
+ Handle<JSMessageObject> CreateMessage(Handle<Object> exception, |
+ MessageLocation* location); |
+ |
// Traverse prototype chain to find out whether the object is derived from |
// the Error object. |
bool IsErrorObject(Handle<Object> obj); |