Index: tool/input_sdk/patch/core_patch.dart |
diff --git a/tool/input_sdk/patch/core_patch.dart b/tool/input_sdk/patch/core_patch.dart |
index 7fe5b967c312211cb727ca2b9a21347f7a1c11c9..4973dcc49a620b365bdfa67bb6eee99ae36af3de 100644 |
--- a/tool/input_sdk/patch/core_patch.dart |
+++ b/tool/input_sdk/patch/core_patch.dart |
@@ -274,6 +274,13 @@ class List<E> { |
} |
} |
+@patch |
+class Map<K, V> { |
+ @patch |
+ factory Map.unmodifiable(Map other) { |
+ return new UnmodifiableMapView<K, V>(new Map<K, V>.from(other)); |
+ } |
+} |
@patch |
class String { |