| OLD | NEW |
| 1 part of dart._internal; | 1 part of dart._internal; |
| 2 | 2 |
| 3 abstract class FixedLengthListMixin<E> { | 3 abstract class FixedLengthListMixin<E> { |
| 4 void set length(int newLength) { | 4 void set length(int newLength) { |
| 5 throw new UnsupportedError( | 5 throw new UnsupportedError( |
| 6 "Cannot change the length of a fixed-length list"); | 6 "Cannot change the length of a fixed-length list"); |
| 7 } | 7 } |
| 8 void add(E value) { | 8 void add(E value) { |
| 9 throw new UnsupportedError("Cannot add to a fixed-length list"); | 9 throw new UnsupportedError("Cannot add to a fixed-length list"); |
| 10 } | 10 } |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 new UnsupportedError("Cannot remove from unmodifiable List"); | 171 new UnsupportedError("Cannot remove from unmodifiable List"); |
| 172 } | 172 } |
| 173 abstract class NonGrowableListError { | 173 abstract class NonGrowableListError { |
| 174 static UnsupportedError add() => | 174 static UnsupportedError add() => |
| 175 new UnsupportedError("Cannot add to non-growable List"); | 175 new UnsupportedError("Cannot add to non-growable List"); |
| 176 static UnsupportedError length() => | 176 static UnsupportedError length() => |
| 177 new UnsupportedError("Cannot change length of non-growable List"); | 177 new UnsupportedError("Cannot change length of non-growable List"); |
| 178 static UnsupportedError remove() => | 178 static UnsupportedError remove() => |
| 179 new UnsupportedError("Cannot remove from non-growable List"); | 179 new UnsupportedError("Cannot remove from non-growable List"); |
| 180 } | 180 } |
| 181 List makeListFixedLength(List growableList) { | 181 external List makeListFixedLength(List growableList); |
| 182 JSArray.markFixedList(growableList); | |
| 183 return growableList; | |
| 184 } | |
| OLD | NEW |