Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index 3aa65160d8cd131307c1bbb8d71e3d38085064dc..c01e5bb6bb66dc44ed393a4991bdd44003236040 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -3904,7 +3904,7 @@ DART_EXPORT Dart_Handle Dart_Allocate(Dart_Handle type) { |
RETURN_TYPE_ERROR(I, type, Type); |
} |
const Class& cls = Class::Handle(Z, type_obj.type_class()); |
- const Error& error = Error::Handle(Z, cls.EnsureIsFinalized(I)); |
+ const Error& error = Error::Handle(Z, cls.EnsureIsFinalized(T)); |
if (!error.IsNull()) { |
// An error occurred, return error object. |
return Api::NewHandle(I, error.raw()); |
@@ -3929,7 +3929,7 @@ DART_EXPORT Dart_Handle Dart_AllocateWithNativeFields( |
RETURN_NULL_ERROR(native_fields); |
} |
const Class& cls = Class::Handle(Z, type_obj.type_class()); |
- const Error& error = Error::Handle(Z, cls.EnsureIsFinalized(I)); |
+ const Error& error = Error::Handle(Z, cls.EnsureIsFinalized(T)); |
if (!error.IsNull()) { |
// An error occurred, return error object. |
return Api::NewHandle(I, error.raw()); |