| Index: runtime/lib/mirrors.cc
|
| diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
|
| index 53af2c44179a349ddab37915ff5da9e2ac43b615..24e6d71fffad0e43d5f0d72eb7cf1afda73262c3 100644
|
| --- a/runtime/lib/mirrors.cc
|
| +++ b/runtime/lib/mirrors.cc
|
| @@ -1206,6 +1206,11 @@ DEFINE_NATIVE_ENTRY(LibraryMirror_members, 2) {
|
| DEFINE_NATIVE_ENTRY(ClassMirror_type_variables, 1) {
|
| GET_NON_NULL_NATIVE_ARGUMENT(MirrorReference, ref, arguments->NativeArgAt(0));
|
| const Class& klass = Class::Handle(ref.GetClassReferent());
|
| + const Error& error = Error::Handle(zone, klass.EnsureIsFinalized(thread));
|
| + if (!error.IsNull()) {
|
| + Exceptions::PropagateError(error);
|
| + UNREACHABLE();
|
| + }
|
| return CreateTypeVariableList(klass);
|
| }
|
|
|
|
|