| Index: third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| index dd3ad6e2ca065816b40224833917ed883efc4767..d32cd3fec30d170d98e596b2a9498ef7cf2965be 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| @@ -87,11 +87,13 @@ void V8RuntimeAgentImpl::evaluate(
|
| if (executionContextId.isJust()) {
|
| contextId = executionContextId.fromJust();
|
| } else {
|
| - contextId = m_debugger->client()->ensureDefaultContextInGroup(m_session->contextGroupId());
|
| - if (!contextId) {
|
| + v8::HandleScope handles(m_debugger->isolate());
|
| + v8::Local<v8::Context> defaultContext = m_debugger->client()->ensureDefaultContextInGroup(m_session->contextGroupId());
|
| + if (defaultContext.IsEmpty()) {
|
| *errorString = "Cannot find default execution context";
|
| return;
|
| }
|
| + contextId = V8DebuggerImpl::contextId(defaultContext);
|
| }
|
|
|
| InjectedScript::ContextScope scope(errorString, m_debugger, m_session->contextGroupId(), contextId);
|
|
|