Index: pkg/compiler/lib/src/apiimpl.dart |
diff --git a/pkg/compiler/lib/src/apiimpl.dart b/pkg/compiler/lib/src/apiimpl.dart |
index 4c67165279e90065936f62f251813b67473bad02..8ce30bb39f8cd0ec121860b3d122f94bb9d7de84 100644 |
--- a/pkg/compiler/lib/src/apiimpl.dart |
+++ b/pkg/compiler/lib/src/apiimpl.dart |
@@ -106,7 +106,7 @@ class Compiler extends leg.Compiler { |
throw new ArgumentError("[packageRoot] must end with a /."); |
} |
if (!analyzeOnly) { |
- if (enableAsyncAwait) { |
+ if (enableAsyncAwait && emitJavaScript) { |
throw new ArgumentError( |
"--enable-async is currently only supported with --analyze-only"); |
} |