Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index ee41192a02ee984dc7f60f0bbad54cd0fdf63001..00acf39c96d6ce8d5624d88b86aac4525e91ef81 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -1059,7 +1059,6 @@ SequenceNode* Parser::ParseStaticInitializer() { |
ParsedFunction* Parser::ParseStaticFieldInitializer(const Field& field) { |
ASSERT(field.is_static()); |
- ASSERT(field.value() == Object::transition_sentinel().raw()); |
Thread* thread = Thread::Current(); |
// TODO(koda): Should there be a StackZone here? |
Zone* zone = thread->zone(); |
@@ -5309,6 +5308,8 @@ void Parser::ParseTopLevelVariable(TopLevel* top_level, |
} |
SkipExpr(); |
field.set_value(field_value); |
+ field.set_has_initializer(true); |
+ |
if (!has_simple_literal) { |
// Create a static final getter. |
String& getter_name = String::Handle(Z, Field::GetterSymbol(var_name)); |