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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_array.dart

Issue 11348207: Fix runtimeType for List and bool. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a test. Created 8 years, 1 month 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
Index: sdk/lib/_internal/compiler/implementation/lib/js_array.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
index 684b7b81bd92011419cc6b4e1c5bec9f3e08bf41..a4f069d5170c50aab32eac8b2a25e43aaca00470 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
@@ -167,7 +167,10 @@ class JSArray<E> implements List<E> {
int get hashCode => Primitives.objectHashCode(this);
- Type get runtimeType => List;
+ Type get runtimeType {
+ // Call getRuntimeTypeString to get the name including type arguments.
+ return new TypeImpl(getRuntimeTypeString(this));
+ }
int get length => JS('int', r'#.length', this);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/interceptors.dart ('k') | tests/language/first_class_types_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698