Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Unified Diff: runtime/lib/mirrors_impl.dart

Issue 25674017: Fix runtimeType for strings, integers and double: return their interface type. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/integers.dart ('k') | runtime/lib/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « runtime/lib/integers.dart ('k') | runtime/lib/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698