Index: sdk/lib/collection/splay_tree.dart |
diff --git a/sdk/lib/collection/splay_tree.dart b/sdk/lib/collection/splay_tree.dart |
index b5fcb93876f21b435abc91fb176380628a3b9863..fea7d348b61659b4da3016089d0da737982c0bc7 100644 |
--- a/sdk/lib/collection/splay_tree.dart |
+++ b/sdk/lib/collection/splay_tree.dart |
@@ -274,7 +274,7 @@ class SplayTreeMap<K, V> extends _SplayTree<K> implements Map<K, V> { |
factory SplayTreeMap.from(Map other, |
[int compare(K key1, K key2), |
bool isValidKey(potentialKey)]) { |
- SplayTreeMap<K, V> result = new SplayTreeMap<K, V>(); |
+ SplayTreeMap<K, V> result = new SplayTreeMap<K, V>(compare, isValidKey); |
other.forEach((k, v) { result[k] = v; }); |
return result; |
} |