| Index: include/v8-debug.h
|
| diff --git a/include/v8-debug.h b/include/v8-debug.h
|
| index e41df29ad053c79adf40164e91d695c1eaa27f53..6520cbe0cda70d8302784d5bce75e4e6b8c8d7e8 100644
|
| --- a/include/v8-debug.h
|
| +++ b/include/v8-debug.h
|
| @@ -125,6 +125,8 @@ class V8_EXPORT Debug {
|
| */
|
| virtual ClientData* GetClientData() const = 0;
|
|
|
| + virtual Isolate* GetIsolate() const = 0;
|
| +
|
| virtual ~EventDetails() {}
|
| };
|
|
|
| @@ -259,6 +261,11 @@ class V8_EXPORT Debug {
|
| V8_DEPRECATED("Use version with an Isolate",
|
| static Local<Context> GetDebugContext());
|
|
|
| + /**
|
| + * While in the debug context, this method returns the top-most non-debug
|
| + * context, if it exists.
|
| + */
|
| + static MaybeLocal<Context> GetDebuggedContext(Isolate* isolate);
|
|
|
| /**
|
| * Enable/disable LiveEdit functionality for the given Isolate
|
|
|