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

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

Issue 11414069: Make mappedBy lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error. 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/interceptors.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart b/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
index f313aa4b43bffa14f4dc55d149636a9fa692a0df..27571d161f89e21fb39b7ff2bbd116caeb5aeaad 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
@@ -198,7 +198,7 @@ mappedBy(receiver, f) {
if (!isJsArray(receiver)) {
return UNINTERCEPTED(receiver.mappedBy(f));
} else {
- return Collections.mappedBy(receiver, [], f);
+ return new MappedIterable(receiver, f);
}
}

Powered by Google App Engine
This is Rietveld 408576698