| Index: runtime/vm/parser.cc
|
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
|
| index df88dbfe7dd7c3a665f32e5c0112221c6a9fa432..237704fbb34dd6ab61800b05060a1aa62fed8a26 100644
|
| --- a/runtime/vm/parser.cc
|
| +++ b/runtime/vm/parser.cc
|
| @@ -6188,9 +6188,11 @@ void Parser::ParseTopLevel() {
|
|
|
| if (top_level.fields().length() > 0) {
|
| toplevel_class.AddFields(top_level.fields());
|
| + toplevel_class.ResetFinalization();
|
| }
|
| for (intptr_t i = 0; i < top_level.functions().length(); i++) {
|
| toplevel_class.AddFunction(*top_level.functions()[i]);
|
| + toplevel_class.ResetFinalization();
|
| }
|
| pending_classes.Add(toplevel_class, Heap::kOld);
|
| }
|
|
|