Index: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
index a1cc770d9a8706802c12fced27c2fca48e682229..d11702f907f83b9fd5949bf4007c3467cc009224 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
@@ -42,8 +42,8 @@ class OptionalParameterTypes { |
final List<HType> types; |
OptionalParameterTypes(int optionalArgumentsCount) |
- : names = new List<SourceString>.fixedLength(optionalArgumentsCount), |
- types = new List<HType>.fixedLength(optionalArgumentsCount); |
+ : names = new List<SourceString>(optionalArgumentsCount), |
+ types = new List<HType>(optionalArgumentsCount); |
int get length => names.length; |
SourceString name(int index) => names[index]; |
@@ -69,10 +69,10 @@ class HTypeList { |
final List<SourceString> namedArguments; |
HTypeList(int length) |
- : types = new List<HType>.fixedLength(length), |
+ : types = new List<HType>(length), |
namedArguments = null; |
HTypeList.withNamedArguments(int length, this.namedArguments) |
- : types = new List<HType>.fixedLength(length); |
+ : types = new List<HType>(length); |
const HTypeList.withAllUnknown() |
: types = null, |
namedArguments = null; |