Index: runtime/lib/array.dart |
=================================================================== |
--- runtime/lib/array.dart (revision 424) |
+++ runtime/lib/array.dart (working copy) |
@@ -105,7 +105,8 @@ |
} |
void insertRange(int start, int length, [T initialValue = null]) { |
- throw const NotImplementedException(); |
+ throw const UnsupportedOperationException( |
+ "Cannot insert range in a non-extendable array"); |
} |
List<T> getRange(int start, int length) { |
@@ -223,7 +224,8 @@ |
} |
void insertRange(int start, int length, [T initialValue = null]) { |
- throw const NotImplementedException(); |
+ throw const UnsupportedOperationException( |
+ "Cannot insert range in an immutable array"); |
} |
List<T> getRange(int start, int length) { |