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

Unified Diff: runtime/vm/debugger.cc

Issue 2780163002: Fix crash when determining whether an async exception is handled (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.cc
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
index 1d947499d4e9d1baeed0a7e5ac20af1b136b1461..26113e2af4b61f522ba5ee3df745feff3efca082 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -806,6 +806,10 @@ RawObject* ActivationFrame::GetCausalStack() {
bool ActivationFrame::HandlesException(const Instance& exc_obj) {
+ if ((kind_ == kAsyncSuspensionMarker) || (kind_ == kAsyncCausal)) {
+ // These frames are historical.
+ return false;
+ }
intptr_t try_index = TryIndex();
if (try_index < 0) {
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698