Index: src/inspector/v8-debugger-agent-impl.cc |
diff --git a/src/inspector/v8-debugger-agent-impl.cc b/src/inspector/v8-debugger-agent-impl.cc |
index 8c9e9054a2143706c066d249d13c66b42ca9d7fa..ab4e349909865e93c5c2ecc23f888dd16a45e6da 100644 |
--- a/src/inspector/v8-debugger-agent-impl.cc |
+++ b/src/inspector/v8-debugger-agent-impl.cc |
@@ -1078,7 +1078,8 @@ void V8DebuggerAgentImpl::didParseSource( |
V8DebuggerAgentImpl::SkipPauseRequest V8DebuggerAgentImpl::didPause( |
v8::Local<v8::Context> context, v8::Local<v8::Value> exception, |
- const std::vector<String16>& hitBreakpoints, bool isPromiseRejection) { |
+ const std::vector<String16>& hitBreakpoints, bool isPromiseRejection, |
+ bool isUncaught) { |
JavaScriptCallFrames callFrames = m_debugger->currentCallFrames(1); |
JavaScriptCallFrame* topCallFrame = |
!callFrames.empty() ? callFrames.begin()->get() : nullptr; |
@@ -1120,7 +1121,12 @@ V8DebuggerAgentImpl::SkipPauseRequest V8DebuggerAgentImpl::didPause( |
std::unique_ptr<protocol::Runtime::RemoteObject> obj; |
injectedScript->wrapObject(exception, kBacktraceObjectGroup, false, false, |
&obj); |
- m_breakAuxData = obj ? obj->serialize() : nullptr; |
+ if (obj) { |
+ m_breakAuxData = obj->serialize(); |
+ m_breakAuxData->setBoolean("uncaught", isUncaught); |
dgozman
2016/11/09 16:27:48
To be very clean, we'd better pass uncaught alongs
jgruber
2016/11/10 07:55:52
Agreed, but wouldn't that break backwards compatib
|
+ } else { |
+ m_breakAuxData = nullptr; |
+ } |
// m_breakAuxData might be null after this. |
} |
} |