Index: pkg/compiler/lib/src/common_elements.dart |
diff --git a/pkg/compiler/lib/src/common_elements.dart b/pkg/compiler/lib/src/common_elements.dart |
index aed124f505b7a4492a74e21f102d7d1309ee5b4a..d2442253623e44751d192cbdf014fe50bc99f39e 100644 |
--- a/pkg/compiler/lib/src/common_elements.dart |
+++ b/pkg/compiler/lib/src/common_elements.dart |
@@ -224,7 +224,8 @@ class CommonElements { |
/// will not resolve the constructor if it hasn't been seen yet during |
/// compilation. |
bool isUnnamedListConstructor(ConstructorEntity element) => |
- element.name == '' && element.enclosingClass == listClass; |
+ (element.name == '' && element.enclosingClass == listClass) || |
+ (element.name == 'list' && element.enclosingClass == jsArrayClass); |
/// Returns `true` if [element] is the 'filled' constructor of `List`. This |
/// will not resolve the constructor if it hasn't been seen yet during |