| Index: Source/core/inspector/InspectorDebuggerAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp
|
| index 3fa6ff4a542357901b767c69e84172d934c25220..48f3cd49ababa13266d803017ac3031a2d7c6a25 100644
|
| --- a/Source/core/inspector/InspectorDebuggerAgent.cpp
|
| +++ b/Source/core/inspector/InspectorDebuggerAgent.cpp
|
| @@ -1387,7 +1387,7 @@ void InspectorDebuggerAgent::didParseSource(const String& scriptId, const Script
|
| }
|
| }
|
|
|
| -ScriptDebugListener::SkipPauseRequest InspectorDebuggerAgent::didPause(ScriptState* scriptState, const ScriptValue& callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoints)
|
| +ScriptDebugListener::SkipPauseRequest InspectorDebuggerAgent::didPause(ScriptState* scriptState, const ScriptValue& callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoints, bool isPromiseRejection)
|
| {
|
| ScriptDebugListener::SkipPauseRequest result;
|
| if (callFrames.isEmpty())
|
| @@ -1415,7 +1415,7 @@ ScriptDebugListener::SkipPauseRequest InspectorDebuggerAgent::didPause(ScriptSta
|
| if (!exception.isEmpty()) {
|
| InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(scriptState);
|
| if (!injectedScript.isEmpty()) {
|
| - m_breakReason = InspectorFrontend::Debugger::Reason::Exception;
|
| + m_breakReason = isPromiseRejection ? InspectorFrontend::Debugger::Reason::PromiseRejection : InspectorFrontend::Debugger::Reason::Exception;
|
| m_breakAuxData = injectedScript.wrapObject(exception, InspectorDebuggerAgent::backtraceObjectGroup)->openAccessors();
|
| // m_breakAuxData might be null after this.
|
| }
|
|
|