Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 2c652cc8fbbb4419308d774dfffada242fc75bc3..ccd7f25336eb8ac0355e8d39ec991b23466daed9 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -8856,7 +8856,8 @@ void Script::GetTokenLocation(TokenPosition token_pos, |
Zone* zone = Thread::Current()->zone(); |
const TokenStream& tkns = TokenStream::Handle(zone, tokens()); |
if (tkns.IsNull()) { |
- ASSERT(Dart::snapshot_kind() == Snapshot::kAppNoJIT); |
+ ASSERT((Dart::snapshot_kind() == Snapshot::kAppNoJIT) || |
+ (url() == Symbols::KernelScriptUri().raw())); |
*line = -1; |
if (column != NULL) { |
*column = -1; |