Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Unified Diff: sdk/lib/_internal/compiler/js_lib/core_patch.dart

Issue 928203003: Implement Function.apply in the new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor fix Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/program_builder.dart ('k') | sdk/lib/_internal/compiler/js_lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698