Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
[vm] Remove incorrect assert in Script::GetSnippet
Browse files Browse the repository at this point in the history
In Dart 2, sources could be unavailable in other kinds of snapshots
besides FullAOT, so this assertion is not correct.

Fixes dart-lang/sdk#34872

Change-Id: I1b96b353e7a2cdf9c8247cdc7c06b08e3629c78b
Reviewed-on: https://dart-review.googlesource.com/c/81283
Auto-Submit: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
  • Loading branch information
alexmarkov authored and commit-bot@chromium.org committed Oct 23, 2018
1 parent 6134ac8 commit 58d73e0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion runtime/vm/object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9858,7 +9858,6 @@ RawString* Script::GetSnippet(intptr_t from_line,
intptr_t to_column) const {
const String& src = String::Handle(Source());
if (src.IsNull()) {
ASSERT(Dart::vm_snapshot_kind() == Snapshot::kFullAOT);
return Symbols::OptimizedOut().raw();
}
intptr_t length = src.Length();
Expand Down

0 comments on commit 58d73e0

Please sign in to comment.