| Index: runtime/vm/dart_api_impl.cc
|
| ===================================================================
|
| --- runtime/vm/dart_api_impl.cc (revision 24634)
|
| +++ runtime/vm/dart_api_impl.cc (working copy)
|
| @@ -3755,11 +3755,10 @@
|
| }
|
|
|
| // Construct the type object, canonicalize it and return.
|
| - const Type& instantiated_type = Type::Handle(
|
| + Type& instantiated_type = Type::Handle(
|
| Type::New(cls, type_args_obj, Scanner::kDummyTokenIndex));
|
| - ClassFinalizer::FinalizeType(cls,
|
| - instantiated_type,
|
| - ClassFinalizer::kCanonicalize);
|
| + instantiated_type ^= ClassFinalizer::FinalizeType(
|
| + cls, instantiated_type, ClassFinalizer::kCanonicalize);
|
| return Api::NewHandle(isolate, instantiated_type.raw());
|
| }
|
|
|
|
|