| Index: dart/frog/leg/lib/mockimpl.dart
|
| diff --git a/dart/frog/leg/lib/mockimpl.dart b/dart/frog/leg/lib/mockimpl.dart
|
| index 5840bd4eece3c7a363925357792fb4fead177e6e..81c204e4d4c5965ff1e67a24d6827ee84f6852c7 100644
|
| --- a/dart/frog/leg/lib/mockimpl.dart
|
| +++ b/dart/frog/leg/lib/mockimpl.dart
|
| @@ -484,3 +484,16 @@ class DateImplementation implements Date {
|
| return adjustedSeconds * Duration.MILLISECONDS_PER_SECOND + milliseconds;
|
| }
|
| }
|
| +
|
| +class ListFactory<E> implements List<E> {
|
| + factory List([int length]) => Primitives.newList(length);
|
| + factory List.from(Iterable<E> other) {
|
| + List<E> result = new List<E>();
|
| + // TODO(ahe): Use for-in when it is implemented correctly.
|
| + Iterator<E> iterator = other.iterator();
|
| + while (iterator.hasNext()) {
|
| + result.add(iterator.next());
|
| + }
|
| + return result;
|
| + }
|
| +}
|
|
|