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

Unified Diff: runtime/vm/object.cc

Issue 2727803002: Fix setting breakpoint setting in await statements (Closed)
Patch Set: Created 3 years, 10 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
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 04c77edc519f1770ccc368e887f5020028213dca..4a4148aec68192858f9686dc2e1e7f9b7f91bf0d 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -22523,11 +22523,11 @@ static void PrintStackTraceFrame(Zone* zone,
if (FLAG_precompiled_mode) {
line = token_pos.value();
} else {
- if (!script.IsNull() && token_pos.IsReal()) {
+ if (!script.IsNull() && token_pos.IsSourcePosition()) {
if (script.HasSource() || script.kind() == RawScript::kKernelTag) {
- script.GetTokenLocation(token_pos, &line, &column);
+ script.GetTokenLocation(token_pos.SourcePosition(), &line, &column);
} else {
- script.GetTokenLocation(token_pos, &line, NULL);
+ script.GetTokenLocation(token_pos.SourcePosition(), &line, NULL);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698