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."); |
} |