Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index ae8d71b9f8e80f6f63a32ab0b9120838ad55acaf..29d63ce047af6136605ba62118069f96f2996096 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -32,6 +32,10 @@ namespace base { |
class RandomNumberGenerator; |
} |
+namespace debug { |
+class ConsoleDelegate; |
+} |
+ |
namespace internal { |
class AccessCompilerData; |
@@ -737,6 +741,11 @@ class Isolate { |
return MaybeHandle<T>(); |
} |
+ void set_console_delegate(debug::ConsoleDelegate* delegate) { |
+ console_delegate_ = delegate; |
+ } |
+ debug::ConsoleDelegate* console_delegate() { return console_delegate_; } |
+ |
// Re-throw an exception. This involves no error reporting since error |
// reporting was handled when the exception was thrown originally. |
Object* ReThrow(Object* exception); |
@@ -1532,6 +1541,8 @@ class Isolate { |
CancelableTaskManager* cancelable_task_manager_; |
+ debug::ConsoleDelegate* console_delegate_ = nullptr; |
+ |
v8::Isolate::AbortOnUncaughtExceptionCallback |
abort_on_uncaught_exception_callback_; |