Index: src/inspector/v8-console.cc |
diff --git a/src/inspector/v8-console.cc b/src/inspector/v8-console.cc |
index eab4051c548ea86b487e9206d598bd685406c3ad..b094de10b0469f213ec118d72992279bed7170c4 100644 |
--- a/src/inspector/v8-console.cc |
+++ b/src/inspector/v8-console.cc |
@@ -93,12 +93,13 @@ class ConsoleHelper { |
const std::vector<v8::Local<v8::Value>>& arguments) { |
InspectedContext* inspectedContext = ensureInspectedContext(); |
if (!inspectedContext) return; |
+ int contextGroupId = inspectedContext->contextGroupId(); |
V8InspectorImpl* inspector = inspectedContext->inspector(); |
std::unique_ptr<V8ConsoleMessage> message = |
V8ConsoleMessage::createForConsoleAPI( |
inspector->client()->currentTimeMS(), type, arguments, |
inspector->debugger()->captureStackTrace(false), inspectedContext); |
- inspector->ensureConsoleMessageStorage(inspectedContext->contextGroupId()) |
+ inspector->ensureConsoleMessageStorage(contextGroupId) |
->addMessage(std::move(message)); |
} |