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

Unified Diff: pkg/compiler/lib/src/apiimpl.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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | tests/language/async_await_syntax_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | tests/language/async_await_syntax_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698