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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 70703002: Add constructors for JSArray (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « tests/compiler/dart2js/mirrors_used_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 8f1963ccbeb95547f2e2b244a9615bbe9afd4e48..15ce07cca3ca373a76b382ca507e577192e28131 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -102,7 +102,9 @@ const String DEFAULT_INTERCEPTORSLIB = r'''
operator[](index);
}
abstract class JSMutableIndexable extends JSIndexable {}
- class JSArray extends Interceptor implements List, JSIndexable {
+ class JSArray<E> extends Interceptor implements List<E>, JSIndexable {
+ JSArray();
+ factory JSArray.typed(a) => a;
var length;
operator[](index) => this[index];
operator[]=(index, value) { this[index] = value; }
« no previous file with comments | « tests/compiler/dart2js/mirrors_used_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698