Index: runtime/lib/mirrors.cc |
=================================================================== |
--- runtime/lib/mirrors.cc (revision 9607) |
+++ runtime/lib/mirrors.cc (working copy) |
@@ -630,12 +630,13 @@ |
if (Dart_IsError(instance_cls)) { |
return instance_cls; |
} |
+ |
bool is_simple = IsSimpleValue(instance); |
Dart_Handle args[] = { |
CreateVMReference(instance), |
CreateLazyMirror(instance_cls), |
Dart_NewBoolean(is_simple), |
- (is_simple ? instance : Dart_Null()), |
+ instance |
}; |
Dart_Handle mirror = Dart_New(cls, Dart_Null(), ARRAY_SIZE(args), args); |
return mirror; |