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

Unified Diff: sdk/lib/collection/maps.dart

Issue 12016014: Undo bad change in Maps class. Fix test. (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
« no previous file with comments | « no previous file | tests/corelib/maps_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/maps.dart
diff --git a/sdk/lib/collection/maps.dart b/sdk/lib/collection/maps.dart
index 714c45787d9a5e3d24d721491ec4b3096679e290..62c760f55af46edda87fb191e4c532be7f3c56f1 100644
--- a/sdk/lib/collection/maps.dart
+++ b/sdk/lib/collection/maps.dart
@@ -45,7 +45,9 @@ class Maps {
}
static forEach(Map map, void f(key, value)) {
- map.keys.forEach(f);
+ for (final k in map.keys) {
+ f(k, map[k]);
+ }
}
static Iterable getValues(Map map) {
« no previous file with comments | « no previous file | tests/corelib/maps_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698