| Index: test/dart_codegen/expect/core/list.dart
|
| diff --git a/test/dart_codegen/expect/core/list.dart b/test/dart_codegen/expect/core/list.dart
|
| index 864283e8e23fe5f443c648aa462fafe696928f17..72e14edb398470b10e5573165c93d9cfc27c3a78 100644
|
| --- a/test/dart_codegen/expect/core/list.dart
|
| +++ b/test/dart_codegen/expect/core/list.dart
|
| @@ -109,20 +109,17 @@ part of dart.core;
|
| List<E> toList({
|
| bool growable : true}
|
| ) {
|
| - if (growable) {
|
| - return new JSArray<E>.markGrowable(JS('', '#.slice()', this));
|
| - }
|
| - else {
|
| - return new JSArray<E>.markFixed(JS('', '#.slice()', this));
|
| + return ((__x14) => DEVC$RT.cast(__x14, dynamic, DEVC$RT.type((List<E> _) {
|
| }
|
| + ), "CompositeCast", """line 248, column 12 of dart:core/list.dart: """, __x14 is List<E>, false))(JS('', 'dart.setType(#.slice(), core.List\$(#))', this, E));
|
| }
|
| Set<E> toSet() => new Set<E>.from(this);
|
| Iterator<E> get iterator => new ListIterator<E>(this);
|
| - int get hashCode => ((__x14) => DEVC$RT.cast(__x14, dynamic, int, "DynamicCast", """line 257, column 23 of dart:core/list.dart: """, __x14 is int, true))(Primitives.objectHashCode(this));
|
| + int get hashCode => ((__x15) => DEVC$RT.cast(__x15, dynamic, int, "DynamicCast", """line 255, column 23 of dart:core/list.dart: """, __x15 is int, true))(Primitives.objectHashCode(this));
|
| E operator [](int index) {
|
| if (index is! int) throw new ArgumentError(index);
|
| if (index >= length || index < 0) throw new RangeError.value(index);
|
| - return ((__x15) => DEVC$RT.cast(__x15, dynamic, E, "CompositeCast", """line 268, column 12 of dart:core/list.dart: """, __x15 is E, false))(JS('var', '#[#]', this, index));
|
| + return ((__x16) => DEVC$RT.cast(__x16, dynamic, E, "CompositeCast", """line 266, column 12 of dart:core/list.dart: """, __x16 is E, false))(JS('var', '#[#]', this, index));
|
| }
|
| void operator []=(int index, E value) {
|
| checkMutable('indexed set');
|
| @@ -130,7 +127,7 @@ part of dart.core;
|
| if (index >= length || index < 0) throw new RangeError.value(index);
|
| JS('void', r'#[#] = #', this, index, value);
|
| }
|
| - int get length => ((__x16) => DEVC$RT.cast(__x16, dynamic, int, "DynamicCast", """line 287, column 21 of dart:core/list.dart: """, __x16 is int, true))(JS('JSUInt32', r'#.length', this));
|
| + int get length => ((__x17) => DEVC$RT.cast(__x17, dynamic, int, "DynamicCast", """line 285, column 21 of dart:core/list.dart: """, __x17 is int, true))(JS('JSUInt32', r'#.length', this));
|
| void set length(int newLength) {
|
| if (newLength is! int) throw new ArgumentError(newLength);
|
| if (newLength < 0) throw new RangeError.value(newLength);
|
| @@ -195,12 +192,12 @@ part of dart.core;
|
| throw new RangeError.value(index);
|
| }
|
| checkGrowable('removeAt');
|
| - return ((__x17) => DEVC$RT.cast(__x17, dynamic, E, "CompositeCast", """line 519, column 12 of dart:core/list.dart: """, __x17 is E, false))(JS('var', r'#.splice(#, 1)[0]', this, index));
|
| + return ((__x18) => DEVC$RT.cast(__x18, dynamic, E, "CompositeCast", """line 517, column 12 of dart:core/list.dart: """, __x18 is E, false))(JS('var', r'#.splice(#, 1)[0]', this, index));
|
| }
|
| E removeLast() {
|
| checkGrowable('removeLast');
|
| if (length == 0) throw new RangeError.value(-1);
|
| - return ((__x18) => DEVC$RT.cast(__x18, dynamic, E, "CompositeCast", """line 530, column 12 of dart:core/list.dart: """, __x18 is E, false))(JS('var', r'#.pop()', this));
|
| + return ((__x19) => DEVC$RT.cast(__x19, dynamic, E, "CompositeCast", """line 528, column 12 of dart:core/list.dart: """, __x19 is E, false))(JS('var', r'#.pop()', this));
|
| }
|
| void removeWhere(bool test(E element)) {
|
| IterableMixinWorkaround.removeWhereList(this, test);
|
|
|