Index: Source/core/inspector/InspectorDebuggerAgent.cpp |
diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp |
index 5c127b63823b666559751ea85ec405ab60713b1d..6e37e6caaca730027cb0b976564b3d756f2ea30a 100644 |
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp |
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp |
@@ -1136,10 +1136,12 @@ void InspectorDebuggerAgent::traceAsyncCallbackStarting(int operationId) |
void InspectorDebuggerAgent::traceAsyncOperationCompleted(int operationId) |
{ |
ASSERT(operationId > 0 || operationId == unknownAsyncOperationId); |
+ if (operationId > 0) { |
+ m_asyncOperations.remove(operationId); |
+ m_asyncOperationsForStepInto.remove(operationId); |
+ } |
if (!m_performingAsyncStepIn) |
return; |
- if (operationId > 0) |
- m_asyncOperationsForStepInto.remove(operationId); |
if (!m_inAsyncOperationForStepInto && m_asyncOperationsForStepInto.isEmpty()) |
clearStepIntoAsync(); |
} |