Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Unified Diff: runtime/vm/object.cc

Issue 2402133002: Field should not be initialized until after initializer returns (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 6f0f16472e248b3bddd20d37e062b2055ceaa405..ea4c3cab31bec39a898e20cba39191ab5a023182 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -7876,7 +7876,6 @@ void Field::EvaluateInitializer() const {
: Instance::Cast(value));
return;
} else if (StaticValue() == Object::transition_sentinel().raw()) {
- SetStaticValue(Object::null_instance());
const Array& ctor_args = Array::Handle(Array::New(1));
const String& field_name = String::Handle(name());
ctor_args.SetAt(0, field_name);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698