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

Unified Diff: runtime/lib/array.dart

Issue 169963004: Fix dartbug.com/16308 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 | « no previous file | runtime/lib/typed_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
===================================================================
--- runtime/lib/array.dart (revision 32732)
+++ runtime/lib/array.dart (working copy)
@@ -27,12 +27,12 @@
void insert(int index, E element) {
throw new UnsupportedError(
- "Cannot add to a non-extendable array");
+ "Cannot insert into a fixed-length list");
}
void insertAll(int index, Iterable<E> iterable) {
throw new UnsupportedError(
- "Cannot add to a non-extendable array");
+ "Cannot insert into a fixed-length list");
}
void setAll(int index, Iterable<E> iterable) {
@@ -41,22 +41,22 @@
E removeAt(int index) {
throw new UnsupportedError(
- "Cannot remove element of a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
bool remove(Object element) {
throw new UnsupportedError(
- "Cannot remove element of a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
void removeWhere(bool test(E element)) {
throw new UnsupportedError(
- "Cannot remove element of a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
void retainWhere(bool test(E element)) {
throw new UnsupportedError(
- "Cannot remove element of a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
Iterable<E> getRange(int start, [int end]) {
@@ -95,12 +95,12 @@
void removeRange(int start, int end) {
throw new UnsupportedError(
- "Cannot remove range of a non-extendable array");
+ "Cannot remove range from a fixed-length list");
}
void replaceRange(int start, int end, Iterable<E> iterable) {
throw new UnsupportedError(
- "Cannot remove range of a non-extendable array");
+ "Cannot remove range from a fixed-length list");
}
void fillRange(int start, int end, [E fillValue]) {
@@ -223,27 +223,27 @@
void add(E element) {
throw new UnsupportedError(
- "Cannot add to a non-extendable array");
+ "Cannot add to a fixed-length list");
}
void addAll(Iterable<E> iterable) {
throw new UnsupportedError(
- "Cannot add to a non-extendable array");
+ "Cannot add to a fixed-length list");
}
void clear() {
throw new UnsupportedError(
- "Cannot clear a non-extendable array");
+ "Cannot clear a fixed-length list");
}
void set length(int length) {
throw new UnsupportedError(
- "Cannot change the length of a non-extendable array");
+ "Cannot resize a fixed-length list");
}
E removeLast() {
throw new UnsupportedError(
- "Cannot remove in a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
E get first {
@@ -509,7 +509,7 @@
E removeLast() {
throw new UnsupportedError(
- "Cannot remove in a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
E get first {
« no previous file with comments | « no previous file | runtime/lib/typed_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698