Index: runtime/vm/class_finalizer.cc |
diff --git a/runtime/vm/class_finalizer.cc b/runtime/vm/class_finalizer.cc |
index 5c11514e7cd9a39d32baf1a1a1b87eca403ef2ac..c8683eeb69f22d94bd1f14990e02c52ee4699676 100644 |
--- a/runtime/vm/class_finalizer.cc |
+++ b/runtime/vm/class_finalizer.cc |
@@ -1438,7 +1438,7 @@ void ClassFinalizer::ResolveAndFinalizeMemberTypes(const Class& cls) { |
&error))) { |
if (Isolate::Current()->error_on_bad_type()) { |
const AbstractType& const_value_type = |
- AbstractType::Handle(zone, const_value.GetType()); |
+ AbstractType::Handle(zone, const_value.GetType(Heap::kNew)); |
const String& const_value_type_name = |
String::Handle(zone, const_value_type.UserVisibleName()); |
const String& type_name = |