| Index: src/debug/debug-interface.h
|
| diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h
|
| index 2171a91d935b9e97dc7d2cd5c51c50c141e824fc..11f6145dca9cc77e13b4021f86d7d18ca13809bd 100644
|
| --- a/src/debug/debug-interface.h
|
| +++ b/src/debug/debug-interface.h
|
| @@ -171,17 +171,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;
|
| };
|
| @@ -208,6 +197,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
|
|
|
|
|