| Index: src/inspector/v8-debugger.cc
|
| diff --git a/src/inspector/v8-debugger.cc b/src/inspector/v8-debugger.cc
|
| index e8f7fb32f8a7b22c30e1bfce9391617c5416905d..5e0c8eae31d4a014dddc0f54f29e9464eb546c1e 100644
|
| --- a/src/inspector/v8-debugger.cc
|
| +++ b/src/inspector/v8-debugger.cc
|
| @@ -488,6 +488,10 @@ void V8Debugger::handleProgramBreak(v8::Local<v8::Context> pausedContext,
|
| m_runningNestedMessageLoop = true;
|
| int groupId = m_inspector->contextGroupId(pausedContext);
|
| DCHECK(groupId);
|
| + v8::Context::Scope scope(pausedContext);
|
| + v8::Local<v8::Context> context = m_isolate->GetCurrentContext();
|
| + CHECK(!context.IsEmpty() &&
|
| + context != v8::Debug::GetDebugContext(m_isolate));
|
| m_inspector->client()->runMessageLoopOnPause(groupId);
|
| // The agent may have been removed in the nested loop.
|
| agent = m_inspector->enabledDebuggerAgentForGroup(
|
|
|