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