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

Unified Diff: test/generated_sdk/lib/core/function.dart

Issue 1131143002: Angular workarounds (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase on latest Created 5 years, 7 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: test/generated_sdk/lib/core/function.dart
diff --git a/test/generated_sdk/lib/core/function.dart b/test/generated_sdk/lib/core/function.dart
index 1e73839566f78d6f7190da5632e2d2e6d32a41d7..cdd298791c52cbd1df712a495dda9e37975587d0 100644
--- a/test/generated_sdk/lib/core/function.dart
+++ b/test/generated_sdk/lib/core/function.dart
@@ -36,9 +36,9 @@ abstract 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);
}
/**

Powered by Google App Engine
This is Rietveld 408576698