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

Unified Diff: runtime/lib/typed_data.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 | « runtime/lib/array.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/typed_data.dart
===================================================================
--- runtime/lib/typed_data.dart (revision 32732)
+++ runtime/lib/typed_data.dart (working copy)
@@ -408,27 +408,27 @@
set length(newLength) {
throw new UnsupportedError(
- "Cannot resize a non-extendable array");
+ "Cannot resize a fixed-length list");
}
void add(value) {
throw new UnsupportedError(
- "Cannot add to a non-extendable array");
+ "Cannot add to a fixed-length list");
}
void addAll(Iterable value) {
throw new UnsupportedError(
- "Cannot add to a non-extendable array");
+ "Cannot add to a fixed-length list");
}
void insert(int index, value) {
throw new UnsupportedError(
- "Cannot insert into a non-extendable array");
+ "Cannot insert into a fixed-length list");
}
void insertAll(int index, Iterable values) {
throw new UnsupportedError(
- "Cannot insert into a non-extendable array");
+ "Cannot insert into a fixed-length list");
}
void sort([int compare(a, b)]) {
@@ -449,32 +449,32 @@
void clear() {
throw new UnsupportedError(
- "Cannot remove from a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
int removeLast() {
throw new UnsupportedError(
- "Cannot remove from a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
bool remove(Object element) {
throw new UnsupportedError(
- "Cannot remove from a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
bool removeAt(int index) {
throw new UnsupportedError(
- "Cannot remove from a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
void removeWhere(bool test(element)) {
throw new UnsupportedError(
- "Cannot remove from a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
void retainWhere(bool test(element)) {
throw new UnsupportedError(
- "Cannot remove from a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
dynamic get first {
@@ -495,12 +495,12 @@
void removeRange(int start, int end) {
throw new UnsupportedError(
- "Cannot remove from a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
void replaceRange(int start, int end, Iterable iterable) {
throw new UnsupportedError(
- "Cannot remove from a non-extendable array");
+ "Cannot remove from a fixed-length list");
}
List toList({bool growable: true}) {
« no previous file with comments | « runtime/lib/array.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698