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

Unified Diff: tool/input_sdk/patch/collection_patch.dart

Issue 1982953002: Minimal patch to collections to use correct LinkedHashMap for map literals. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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 | « lib/runtime/dart_sdk.sum ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/patch/collection_patch.dart
diff --git a/tool/input_sdk/patch/collection_patch.dart b/tool/input_sdk/patch/collection_patch.dart
index c06f55287fa27ca6a9a528bb78ee00ad1017680a..6cd3dbae98e0f881248d8e4529b5ac1c07f3908e 100644
--- a/tool/input_sdk/patch/collection_patch.dart
+++ b/tool/input_sdk/patch/collection_patch.dart
@@ -5,7 +5,7 @@
// Patch file for dart:collection classes.
import 'dart:_foreign_helper' show JS;
import 'dart:_js_helper' show
- fillLiteralMap, InternalMap, NoInline, NoThrows, patch;
+ fillLiteralMap, InternalMap, NoInline, NoThrows, patch, JsLinkedHashMap;
@patch
class HashMap<K, V> {
@@ -492,7 +492,7 @@ class LinkedHashMap<K, V> {
if (isValidKey == null) {
if (hashCode == null) {
if (equals == null) {
- return new _LinkedHashMap<K, V>();
+ return new JsLinkedHashMap<K, V>.es6();
}
hashCode = _defaultHashCode;
} else {
« no previous file with comments | « lib/runtime/dart_sdk.sum ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698