From 21a6f508928574c38ddcdc7ea47be192e26446d2 Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Wed, 19 Oct 2016 15:34:25 -0700 Subject: [PATCH] Tearing off a top-level variable introduces a synthetic field which is added to the top-level class not but the library. R=hausner@google.com Review URL: https://codereview.chromium.org/2428353004 . --- runtime/vm/precompiler.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc index 22348eb43e4..de1f3536e39 100644 --- a/runtime/vm/precompiler.cc +++ b/runtime/vm/precompiler.cc @@ -1721,8 +1721,7 @@ void Precompiler::DropFields() { bool top_level = cls.IsTopLevel(); if (top_level) { name = field.DictionaryName(); - bool removed = lib.RemoveObject(field, name); - ASSERT(removed); + lib.RemoveObject(field, name); } dropped_field_count_++; if (FLAG_trace_precompiler) {