| Index: tool/input_sdk/patch/core_patch.dart
|
| diff --git a/tool/input_sdk/patch/core_patch.dart b/tool/input_sdk/patch/core_patch.dart
|
| index dfb6ac0a12335dc8f9a0a653b4a926b78e277424..855a3831b339497b266b651756aaa6e655ba0da7 100644
|
| --- a/tool/input_sdk/patch/core_patch.dart
|
| +++ b/tool/input_sdk/patch/core_patch.dart
|
| @@ -64,9 +64,9 @@ class Function {
|
| static apply(Function f,
|
| List positionalArguments,
|
| [Map<Symbol, dynamic> namedArguments]) {
|
| - return Primitives.applyFunction(
|
| - f, positionalArguments,
|
| - namedArguments == null ? null : _toMangledNames(namedArguments));
|
| + // TODO(vsm): Handle named args.
|
| + // See: https://github.com/dart-lang/dev_compiler/issues/176
|
| + return JS('', 'dart.dcall.apply(null, [#].concat(#))', f, positionalArguments);
|
| }
|
|
|
| static Map<String, dynamic> _toMangledNames(
|
| @@ -280,7 +280,7 @@ class List<E> {
|
| @patch
|
| factory List.from(Iterable elements, { bool growable: true }) {
|
| List<E> list = new List<E>();
|
| - for (E e in elements) {
|
| + for (var e in elements) {
|
| list.add(e);
|
| }
|
| if (growable) return list;
|
|
|