Chromium Code Reviews| Index: runtime/lib/mirrors_impl.dart |
| =================================================================== |
| --- runtime/lib/mirrors_impl.dart (revision 28266) |
| +++ runtime/lib/mirrors_impl.dart (working copy) |
| @@ -342,8 +342,7 @@ |
| _invokeSetter(reflectee, setterName, value) |
| native 'InstanceMirror_invokeSetter'; |
| - static _computeType(reflectee) |
| - native 'Object_runtimeType'; |
| + static _computeType(reflectee) => reflectee.runtimeType; |
|
rmacnak
2013/10/04 16:49:56
Please don't change this. The mirrors should retri
siva
2013/10/04 16:56:34
I thought we don't allow end users to override met
rmacnak
2013/10/04 17:11:50
We don't, and the changes to the built-in types ar
Ivan Posva
2013/10/04 17:49:55
Ryan,
In that case you should be calling your own
|
| } |
| class _LocalClosureMirrorImpl extends _LocalInstanceMirrorImpl |