Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(696)

Unified Diff: src/inspector/V8DebuggerAgentImpl.cpp

Issue 2345263003: [inspector] provide more usefull error message for non serializable value (Closed)
Patch Set: addressed comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/StringUtil.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/V8DebuggerAgentImpl.cpp
diff --git a/src/inspector/V8DebuggerAgentImpl.cpp b/src/inspector/V8DebuggerAgentImpl.cpp
index 58bcd610c3cdcf163be85753bffea2f7de8b9380..9399cb9624372eb06e3bda579df446a4223cecc1 100644
--- a/src/inspector/V8DebuggerAgentImpl.cpp
+++ b/src/inspector/V8DebuggerAgentImpl.cpp
@@ -1012,9 +1012,12 @@ std::unique_ptr<Array<CallFrame>> V8DebuggerAgentImpl::currentCallFrames(
return Array<CallFrame>::create();
}
+ std::unique_ptr<protocol::Value> protocolValue =
+ toProtocolValue(errorString, debuggerContext, objects);
+ if (!protocolValue) return Array<CallFrame>::create();
protocol::ErrorSupport errorSupport;
- std::unique_ptr<Array<CallFrame>> callFrames = Array<CallFrame>::parse(
- toProtocolValue(debuggerContext, objects).get(), &errorSupport);
+ std::unique_ptr<Array<CallFrame>> callFrames =
+ Array<CallFrame>::parse(protocolValue.get(), &errorSupport);
if (hasInternalError(errorString, !callFrames))
return Array<CallFrame>::create();
return callFrames;
« no previous file with comments | « src/inspector/StringUtil.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698