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

Unified Diff: tool/input_sdk/private/ddc_runtime/generators.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 | « tool/input_sdk/private/ddc_runtime/classes.dart ('k') | tool/input_sdk/private/ddc_runtime/operations.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/generators.dart
diff --git a/tool/input_sdk/private/ddc_runtime/generators.dart b/tool/input_sdk/private/ddc_runtime/generators.dart
index 4c1f17aecbe6ccf8e4276e2208156d61ccedcbd5..b8138d7b4dda863c3c20bcaa2fc90a6c9ba80675 100644
--- a/tool/input_sdk/private/ddc_runtime/generators.dart
+++ b/tool/input_sdk/private/ddc_runtime/generators.dart
@@ -47,8 +47,8 @@ async_(gen, T, @rest args) => JS('', '''(() => {
// Chain the Future so `await` receives the Future's value.
return future.then($dynamic)(onValue, {onError: onError});
}
- return ${getGenericClass(Future)}(T).new(function() {
- iter = $gen(...$args)[Symbol.iterator]();
+ return ${getGenericClass(Future)}($T).new(function() {
+ iter = $gen.apply(null, $args)[Symbol.iterator]();
return onValue();
});
})()''');
« no previous file with comments | « tool/input_sdk/private/ddc_runtime/classes.dart ('k') | tool/input_sdk/private/ddc_runtime/operations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698