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

Unified Diff: pkg/compiler/lib/src/js/rewrite_async.dart

Issue 2322323002: Async-helper only takes 3 arguments. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js/rewrite_async.dart
diff --git a/pkg/compiler/lib/src/js/rewrite_async.dart b/pkg/compiler/lib/src/js/rewrite_async.dart
index eb0b535a854f7de49c96ca07ead31459907881ad..5d37861e389279e3c085df6ef1bc93dd2991dd0f 100644
--- a/pkg/compiler/lib/src/js/rewrite_async.dart
+++ b/pkg/compiler/lib/src/js/rewrite_async.dart
@@ -1712,8 +1712,7 @@ class AsyncRewriter extends AsyncRewriterBase {
addStatement(new js.Comment("implicit return"));
}
addStatement(js.js.statement(
- "return #runtimeHelper(#returnValue, #successCode, "
- "#completer, null);",
+ "return #runtimeHelper(#returnValue, #successCode, #completer);",
{
"runtimeHelper": asyncHelper,
"successCode": js.number(error_codes.SUCCESS),
@@ -1772,7 +1771,7 @@ class AsyncRewriter extends AsyncRewriterBase {
}
#rewrittenBody;
});
- return #asyncHelper(null, #bodyName, #completer, null);
+ return #asyncHelper(null, #bodyName, #completer);
}""",
{
"parameters": parameters,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698