Index: sdk/lib/_internal/compiler/implementation/js/nodes.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js/nodes.dart b/sdk/lib/_internal/compiler/implementation/js/nodes.dart |
index fa7722e75ab2bf5c1e6242d4b4567f358958104d..38fb316445099dd114b8ec4f7b58e16273d40125 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js/nodes.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js/nodes.dart |
@@ -791,8 +791,9 @@ class ArrayInitializer extends Expression { |
static List<ArrayElement> _convert(List<Expression> expressions) { |
int index = 0; |
- return expressions.map( |
- (expression) => new ArrayElement(index++, expression)); |
+ return expressions.mappedBy( |
+ (expression) => new ArrayElement(index++, expression)) |
+ .toList(); |
} |
} |
@@ -891,7 +892,8 @@ Call call(Expression target, List<Expression> arguments) { |
} |
Fun fun(List<String> parameterNames, Block body) { |
- return new Fun(parameterNames.map((n) => new Parameter(n)), body); |
+ return new Fun(parameterNames.mappedBy((n) => new Parameter(n)).toList(), |
+ body); |
} |
Assignment assign(Expression leftHandSide, Expression value) { |