Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index 2efbd87c6ae9761cd8c43c7e1493bf3a40af5441..6ec61eb87a5b17876f9b0f249d7612314cc10a91 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -1707,13 +1707,6 @@ MaybeHandle<Object> Debug::MakeCompileEvent(Handle<Script> script, |
} |
-MaybeHandle<Object> Debug::MakePromiseEvent(Handle<JSObject> event_data) { |
- // Create the promise event object. |
- Handle<Object> argv[] = { event_data }; |
- return CallFunction("MakePromiseEvent", arraysize(argv), argv); |
-} |
- |
- |
MaybeHandle<Object> Debug::MakeAsyncTaskEvent(Handle<JSObject> task_event) { |
// Create the async task event object. |
Handle<Object> argv[] = { task_event }; |
@@ -1844,25 +1837,6 @@ void Debug::OnAfterCompile(Handle<Script> script) { |
} |
-void Debug::OnPromiseEvent(Handle<JSObject> data) { |
- if (in_debug_scope() || ignore_events()) return; |
- |
- HandleScope scope(isolate_); |
- DebugScope debug_scope(this); |
- if (debug_scope.failed()) return; |
- |
- // Create the script collected state object. |
- Handle<Object> event_data; |
- // Bail out and don't call debugger if exception. |
- if (!MakePromiseEvent(data).ToHandle(&event_data)) return; |
- |
- // Process debug event. |
- ProcessDebugEvent(v8::PromiseEvent, |
- Handle<JSObject>::cast(event_data), |
- true); |
-} |
- |
- |
void Debug::OnAsyncTaskEvent(Handle<JSObject> data) { |
if (in_debug_scope() || ignore_events()) return; |
@@ -2012,7 +1986,6 @@ void Debug::NotifyMessageHandler(v8::DebugEvent event, |
case v8::NewFunction: |
case v8::BeforeCompile: |
case v8::CompileError: |
- case v8::PromiseEvent: |
case v8::AsyncTaskEvent: |
break; |
case v8::Exception: |