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

Unified Diff: sdk/lib/_internal/lib/js_rti.dart

Issue 26971005: Tighter native type annotations for some elements returning Lists (Closed) Base URL: https://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 | « sdk/lib/_internal/lib/js_helper.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/js_rti.dart
diff --git a/sdk/lib/_internal/lib/js_rti.dart b/sdk/lib/_internal/lib/js_rti.dart
index 432d2374021223ec4d8a611d91f38e4249691c72..ea01f76a141ffb51eb8d921530cba714d200566d 100644
--- a/sdk/lib/_internal/lib/js_rti.dart
+++ b/sdk/lib/_internal/lib/js_rti.dart
@@ -418,7 +418,7 @@ bool checkSubtypeOfRuntimeType(Object o, var t) {
// If the type has type variables (that is, [:rti != null:]), make a copy of
// the type arguments and insert [o] in the first position to create a
// compound type representation.
- type = JS('List', '#.slice()', rti);
+ type = JS('JSExtendableArray', '#.slice()', rti);
JS('', '#.splice(0, 0, #)', type, o);
} else {
// Use the object as representation of the raw type.
« no previous file with comments | « sdk/lib/_internal/lib/js_helper.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698