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

Unified Diff: tool/input_sdk/private/ddc_runtime/classes.dart

Issue 1968193002: avoid spread args (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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
« no previous file with comments | « lib/src/compiler/code_generator.dart ('k') | tool/input_sdk/private/ddc_runtime/generators.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/ddc_runtime/classes.dart
diff --git a/tool/input_sdk/private/ddc_runtime/classes.dart b/tool/input_sdk/private/ddc_runtime/classes.dart
index fdc72a361eeef9dcbcd597e2f592c9da9cc6aeb9..570fff1a0e2cadd38aff39d0ef5d6393198ac953 100644
--- a/tool/input_sdk/private/ddc_runtime/classes.dart
+++ b/tool/input_sdk/private/ddc_runtime/classes.dart
@@ -183,8 +183,8 @@ bind(obj, name, f) => JS('', '''(() => {
/// We need to apply the type arguments both to the function, as well as its
/// associated function type.
gbind(f, @rest typeArgs) {
- var result = JS('', '#(...#)', f, typeArgs);
- var sig = JS('', '#(...#)', _getRuntimeType(f), typeArgs);
+ var result = JS('', '#.apply(null, #)', f, typeArgs);
+ var sig = JS('', '#.apply(null, #)', _getRuntimeType(f), typeArgs);
tag(result, sig);
return result;
}
« no previous file with comments | « lib/src/compiler/code_generator.dart ('k') | tool/input_sdk/private/ddc_runtime/generators.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698