| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 0c3cdba4b2b28511728297bc395ce6f389c8eb6b..d62c9e96dafbf17533b7175e549f3584b71b885a 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -9150,6 +9150,9 @@ void Script::SetLocationOffset(intptr_t line_offset,
|
| // position that could be part of a stack trace.
|
| intptr_t Script::GetTokenLineUsingLineStarts(
|
| TokenPosition target_token_pos) const {
|
| + if (target_token_pos.IsNoSource()) {
|
| + return 0;
|
| + }
|
| Zone* zone = Thread::Current()->zone();
|
| Array& line_starts_array = Array::Handle(zone, line_starts());
|
| Smi& token_pos = Smi::Handle(zone);
|
|
|