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

Unified Diff: pkg/compiler/lib/src/dart2js.dart

Issue 880973005: Support async/await in dart2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment + status for new_backend Created 5 years, 11 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: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index d0e9a5b8a19e66bcd140f485c23c3da93454ae07..4aad6af0011cc5dc1223e7f8c804fa2c2abc269b 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -410,7 +410,7 @@ Future<api.CompilationResult> compile(List<String> argv) {
}
if (analyzeAll) analyzeOnly = true;
if (!analyzeOnly) {
- if (enableAsyncAwait) {
+ if (enableAsyncAwait && outputLanguage != OUTPUT_LANGUAGE_DART) {
helpAndFail("Option '--enable-async' is currently only supported in "
"combination with the '--analyze-only' option.");
}

Powered by Google App Engine
This is Rietveld 408576698