Index: src/debug/debug-interface.h |
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h |
index b4216d7a54106dfd7ba24d0aa4f32e33a1f81686..6287e73765aa4a1a0d723d96ac52139c28e666e0 100644 |
--- a/src/debug/debug-interface.h |
+++ b/src/debug/debug-interface.h |
@@ -5,6 +5,8 @@ |
#ifndef V8_DEBUG_DEBUG_INTERFACE_H_ |
#define V8_DEBUG_DEBUG_INTERFACE_H_ |
+#include <functional> |
+ |
#include "include/v8-debug.h" |
#include "include/v8-util.h" |
#include "include/v8.h" |
@@ -202,6 +204,12 @@ void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); |
MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, |
Local<String> source); |
+typedef std::function<void(debug::PromiseDebugActionType type, int id, |
+ void* data)> |
+ AsyncTaskListener; |
+void SetAsyncTaskListener(Isolate* isolate, AsyncTaskListener listener, |
+ void* data); |
+ |
} // namespace debug |
} // namespace v8 |