Index: sdk/lib/_internal/compiler/implementation/lib/constant_map.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart b/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart |
index 75446c7b91e83c20ae4d733d69f0966924346cdb..625e0ed7cf8e3e744387518d9195d406952954d8 100644 |
--- a/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart |
+++ b/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart |
@@ -35,7 +35,8 @@ class ConstantMap<V> implements Map<String, V> { |
} |
Iterable<V> get values { |
- return _keys.map((String key) => this[key]); |
+ // TODO(floitsch): don't wrap the map twice. |
+ return keys.mappedBy((String key) => this[key]); |
} |
bool get isEmpty => length == 0; |