Index: sdk/lib/_internal/compiler/js_lib/core_patch.dart |
diff --git a/sdk/lib/_internal/compiler/js_lib/core_patch.dart b/sdk/lib/_internal/compiler/js_lib/core_patch.dart |
index 04857676f36212f6903e741846a4a62658687710..21be5acb8c48a9e23c2cfbca07fde3b7d32bc318 100644 |
--- a/sdk/lib/_internal/compiler/js_lib/core_patch.dart |
+++ b/sdk/lib/_internal/compiler/js_lib/core_patch.dart |
@@ -71,8 +71,8 @@ class Function { |
static apply(Function function, |
List positionalArguments, |
[Map<Symbol, dynamic> namedArguments]) { |
- //TODO(zarah): implement for new emitter. |
- throw new UnsupportedError('Function.apply is currently not supported.'); |
+ return Primitives.applyFunctionNewEmitter(function, positionalArguments, |
+ namedArguments == null ? null : _symbolMapToStringMap(namedArguments)); |
} |
static Map<String, dynamic> _toMangledNames( |