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); |
} |
} |
} |