Index: src/inspector/injected-script.cc |
diff --git a/src/inspector/injected-script.cc b/src/inspector/injected-script.cc |
index 9d9c3270c2b26f779060861dd52ca74ab148c6a2..b4183a735a250f8d0493050df0401404626b51a1 100644 |
--- a/src/inspector/injected-script.cc |
+++ b/src/inspector/injected-script.cc |
@@ -406,9 +406,12 @@ Response InjectedScript::wrapEvaluateResult( |
} |
v8::Local<v8::Object> InjectedScript::commandLineAPI() { |
- if (m_commandLineAPI.IsEmpty()) |
- m_commandLineAPI.Reset(m_context->isolate(), |
- V8Console::createCommandLineAPI(m_context)); |
+ if (m_commandLineAPI.IsEmpty()) { |
+ m_commandLineAPI.Reset( |
+ m_context->isolate(), |
+ m_context->inspector()->console()->createCommandLineAPI( |
+ m_context->context())); |
+ } |
return m_commandLineAPI.Get(m_context->isolate()); |
} |