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

Unified Diff: sdk/lib/_internal/lib/constant_map.dart

Issue 177053004: Use normal equality for const maps. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 10 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/language/const_map_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/constant_map.dart
diff --git a/sdk/lib/_internal/lib/constant_map.dart b/sdk/lib/_internal/lib/constant_map.dart
index f13f30911b03c4078dc9c18a24bb92a1ee437742..c6b6a95ed124a0a787cfaeb0d45f23bc3bf41708 100644
--- a/sdk/lib/_internal/lib/constant_map.dart
+++ b/sdk/lib/_internal/lib/constant_map.dart
@@ -103,8 +103,7 @@ class GeneralConstantMap<K, V> extends ConstantMap<K, V> {
// have not been defined when constants are created.
Map<K, V> _getMap() {
if (JS('bool', r'!this.$map')) {
- Map backingMap =
- new LinkedHashMap<K, V>(equals: identical, hashCode: objectHashCode);
+ Map backingMap = new LinkedHashMap<K, V>();
JS('', r'this.$map = #', fillLiteralMap(_jsData, backingMap));
}
return JS('Map', r'this.$map');
« no previous file with comments | « no previous file | tests/language/const_map_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698