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

Unified Diff: src/inspector/v8-debugger-agent-impl.cc

Issue 2583173002: Revert of [inspector] gracefully handle stack overflows in the inspector. (Closed)
Patch Set: Created 4 years 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/v8-debugger.cc ('k') | test/debugger/debugger.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b287d1c082d880cd5c7c53e37f686b4dc3e21147..98ae880225a85ed02ce26436c6c01fcdd490ed46 100644
--- a/src/inspector/v8-debugger-agent-impl.cc
+++ b/src/inspector/v8-debugger-agent-impl.cc
@@ -944,9 +944,8 @@
const std::unique_ptr<JavaScriptCallFrame>& currentCallFrame =
m_pausedCallFrames[frameOrdinal];
- v8::Local<v8::Object> details;
- if (!currentCallFrame->details().ToLocal(&details))
- return Response::InternalError();
+ v8::Local<v8::Object> details = currentCallFrame->details();
+ if (details.IsEmpty()) return Response::InternalError();
int contextId = currentCallFrame->contextId();
« no previous file with comments | « src/inspector/v8-debugger.cc ('k') | test/debugger/debugger.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698