Index: runtime/vm/debugger_api_impl.cc |
diff --git a/runtime/vm/debugger_api_impl.cc b/runtime/vm/debugger_api_impl.cc |
index f0c5532e992845acd7a8922df38101e0a5174538..beb0155370c484a9da23348eb755e33cfa193e47 100644 |
--- a/runtime/vm/debugger_api_impl.cc |
+++ b/runtime/vm/debugger_api_impl.cc |
@@ -606,7 +606,7 @@ DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle target_in, |
DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object_in) { |
DARTSCOPE(Thread::Current()); |
UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in); |
- return Api::NewHandle(T, obj.GetType()); |
+ return Api::NewHandle(T, obj.GetType(Heap::kNew)); |
} |