Index: src/debug/debug-interface.h |
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h |
index 6287e73765aa4a1a0d723d96ac52139c28e666e0..77deb70e4a3c365616912bcdf8a2f0bd8b40016f 100644 |
--- a/src/debug/debug-interface.h |
+++ b/src/debug/debug-interface.h |
@@ -173,17 +173,6 @@ class Script { |
const debug::Location& end, |
std::vector<debug::Location>* locations) const; |
- /** |
- * script parameter is a wrapper v8::internal::JSObject for |
- * v8::internal::Script. |
- * This function gets v8::internal::Script from v8::internal::JSObject and |
- * wraps it with DebugInterface::Script. |
- * Returns empty local if not called with a valid wrapper of |
- * v8::internal::Script. |
- */ |
- static MaybeLocal<Script> Wrap(Isolate* isolate, |
- v8::Local<v8::Object> script); |
- |
private: |
int GetSourcePosition(const debug::Location& location) const; |
}; |
@@ -210,6 +199,12 @@ typedef std::function<void(debug::PromiseDebugActionType type, int id, |
void SetAsyncTaskListener(Isolate* isolate, AsyncTaskListener listener, |
void* data); |
+typedef std::function<void(v8::Local<Script> script, bool has_compile_error, |
+ void* data)> |
+ CompileEventListener; |
+void SetCompileEventListener(Isolate* isolate, CompileEventListener listener, |
+ void* data); |
+ |
} // namespace debug |
} // namespace v8 |