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

Unified Diff: sdk/lib/_internal/js_runtime/lib/core_patch.dart

Issue 1252533003: dart2js: fix named arguments with Function.apply in the startup emitter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 5 years, 5 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/js_runtime/lib/core_patch.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/core_patch.dart b/sdk/lib/_internal/js_runtime/lib/core_patch.dart
index 22186f69c49787786e367ae9f68195c1d74dad25..971b37f96e36270c2b6726a7f0ba5f2b83033563 100644
--- a/sdk/lib/_internal/js_runtime/lib/core_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/core_patch.dart
@@ -74,7 +74,7 @@ class Function {
static apply(Function function,
List positionalArguments,
[Map<Symbol, dynamic> namedArguments]) {
- return Primitives.applyFunctionNewEmitter(function, positionalArguments,
+ return Primitives.applyFunction2(function, positionalArguments,
namedArguments == null ? null : _symbolMapToStringMap(namedArguments));
}
@@ -82,7 +82,7 @@ class Function {
static apply(Function function,
List positionalArguments,
[Map<Symbol, dynamic> namedArguments]) {
- return Primitives.applyFunctionNewEmitter(function, positionalArguments,
+ return Primitives.applyFunction2(function, positionalArguments,
namedArguments == null ? null : _symbolMapToStringMap(namedArguments));
}
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698