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

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

Issue 12089023: Don't use ReversedListView from outside core and collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
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 654edc038a39cbf89d4fa297d720aaac5b89f4db..eeb08d29e6c71662836713462df4223af9103acd 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
@@ -222,7 +222,7 @@ class JSArray<E> implements List<E> {
bool every(bool f(E element)) => IterableMixinWorkaround.every(this, f);
- List<E> get reversed => new ReversedListView<E>(this, 0, null);
+ List<E> get reversed => IterableMixinWorkaround.reversed(this);
Lasse Reichstein Nielsen 2013/01/29 08:11:22 The interceptor.dart library imports collections-d
Lasse Reichstein Nielsen 2013/01/29 08:11:22 Should't it be ".reversedList"?
floitsch 2013/01/29 15:41:07 It shouldn't.
floitsch 2013/01/29 15:41:07 Done.
void sort([int compare(E a, E b)]) {
checkMutable(this, 'sort');

Powered by Google App Engine
This is Rietveld 408576698