Index: runtime/lib/array_patch.dart |
diff --git a/runtime/lib/array_patch.dart b/runtime/lib/array_patch.dart |
index e62524bd124ddd79fcfd779bc7d7705b34878322..f8343941905d1ddb2c5d28e186722763f1c4d648 100644 |
--- a/runtime/lib/array_patch.dart |
+++ b/runtime/lib/array_patch.dart |
@@ -33,7 +33,7 @@ const _GROWABLE_ARRAY_MARKER = const _GrowableArrayMarker(); |
} |
@patch factory List.from(Iterable elements, { bool growable: true }) { |
- if (elements is EfficientLength) { |
+ if (elements is EfficientLengthIterable) { |
int length = elements.length; |
var list = growable ? new _GrowableList<E>(length) : new _List<E>(length); |
if (length > 0) { // Avoid creating iterator unless necessary. |