| Index: runtime/lib/immutable_map.dart
|
| diff --git a/runtime/lib/immutable_map.dart b/runtime/lib/immutable_map.dart
|
| index 3901c11a5279fb1e6d0a56deabc3cb069f397fa8..041291c13ddcffe0f62f4aa62c77af55727e261d 100644
|
| --- a/runtime/lib/immutable_map.dart
|
| +++ b/runtime/lib/immutable_map.dart
|
| @@ -72,19 +72,19 @@ class ImmutableMap<K, V> implements Map<K, V> {
|
| }
|
|
|
| void operator []=(K key, V value) {
|
| - throw const IllegalAccessException();
|
| + throw new UnsupportedError("Cannot set value in unmodifiable Map");
|
| }
|
|
|
| V putIfAbsent(K key, V ifAbsent()) {
|
| - throw const IllegalAccessException();
|
| + throw new UnsupportedError("Cannot set value in unmodifiable Map");
|
| }
|
|
|
| void clear() {
|
| - throw const IllegalAccessException();
|
| + throw new UnsupportedError("Cannot clear unmodifiable Map");
|
| }
|
|
|
| V remove(K key) {
|
| - throw const IllegalAccessException();
|
| + throw new UnsupportedError("Cannot remove from unmodifiable Map");
|
| }
|
|
|
| String toString() {
|
|
|