mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:21:07 +00:00
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 .
This commit is contained in:
parent
f73ea62c99
commit
21a6f50892
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue