Index: src/inspector/v8-inspector-impl.cc |
diff --git a/src/inspector/v8-inspector-impl.cc b/src/inspector/v8-inspector-impl.cc |
index 567dff2612757de7c752da3361f77af536046f02..705fd793deecb33e24b19ed5c6f7b7481579d410 100644 |
--- a/src/inspector/v8-inspector-impl.cc |
+++ b/src/inspector/v8-inspector-impl.cc |
@@ -34,6 +34,7 @@ |
#include "src/inspector/string-util.h" |
#include "src/inspector/v8-console-agent-impl.h" |
#include "src/inspector/v8-console-message.h" |
+#include "src/inspector/v8-console.h" |
#include "src/inspector/v8-debugger-agent-impl.h" |
#include "src/inspector/v8-debugger.h" |
#include "src/inspector/v8-inspector-session-impl.h" |
@@ -335,4 +336,9 @@ V8InspectorSessionImpl* V8InspectorImpl::sessionForContextGroup( |
return iter == m_sessions.end() ? nullptr : iter->second; |
} |
+V8Console* V8InspectorImpl::console() { |
+ if (!m_console) m_console.reset(new V8Console(this)); |
+ return m_console.get(); |
+} |
+ |
} // namespace v8_inspector |