Index: Source/bindings/v8/ScriptDebugServer.cpp |
diff --git a/Source/bindings/v8/ScriptDebugServer.cpp b/Source/bindings/v8/ScriptDebugServer.cpp |
index 89c9ea7a7946971cbef658513ff0166ce496da6f..2eb227aafc0a6976f415c918ef59137c90ef4e03 100644 |
--- a/Source/bindings/v8/ScriptDebugServer.cpp |
+++ b/Source/bindings/v8/ScriptDebugServer.cpp |
@@ -393,6 +393,12 @@ void ScriptDebugServer::handleProgramBreak(v8::Handle<v8::Object> executionState |
void ScriptDebugServer::handleProgramBreak(const v8::Debug::EventDetails& eventDetails, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBreakpointNumbers) |
{ |
+ // FIXME(http://dartbug.com/14802): The check in the function above appears to be insufficient as |
+ // m_pausedContext is cleared for current invocations of handleProgramBreak. |
+ // Don't allow nested breaks. |
+ if (isPaused()) |
+ return; |
+ |
m_pausedContext = eventDetails.GetEventContext(); |
handleProgramBreak(eventDetails.GetExecutionState(), exception, hitBreakpointNumbers); |
m_pausedContext.Clear(); |