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:
Ryan Macnak 2016-10-19 15:34:25 -07:00
parent f73ea62c99
commit 21a6f50892

View file

@ -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) {