| Index: lib/compiler/implementation/lib/coreimpl_patch.dart
|
| diff --git a/lib/compiler/implementation/lib/coreimpl_patch.dart b/lib/compiler/implementation/lib/coreimpl_patch.dart
|
| index 9eb3d798b60d446246dbcf4d06eb132e4e6e8b5c..c79fea38fdf19f0c46a62c892f8e1fde6fe60fe1 100644
|
| --- a/lib/compiler/implementation/lib/coreimpl_patch.dart
|
| +++ b/lib/compiler/implementation/lib/coreimpl_patch.dart
|
| @@ -36,6 +36,22 @@ patch class StringImplementation {
|
| }
|
|
|
|
|
| +// Patch for List implementation.
|
| +// TODO(ager): Split out into date_patch.dart and allow #source
|
| +// in patch files?
|
| +patch class ListImplementation<E> {
|
| + patch factory List([int length]) => Primitives.newList(length);
|
| +
|
| + patch static List _from(Iterable other) {
|
| + List result = new List();
|
| + for (var element in other) {
|
| + result.add(element);
|
| + }
|
| + return result;
|
| + }
|
| +}
|
| +
|
| +
|
| // Patch for Date implementation.
|
| // TODO(ager): Split out into date_patch.dart and allow #source
|
| // in patch files?
|
|
|