Index: tests/compiler/dart2js/type_checker_test.dart |
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart |
index 7d9573191ee2f6ee6806622422133c0917f805c1..49b1173c8e3c8de636c4238e8358ac73640efc96 100644 |
--- a/tests/compiler/dart2js/type_checker_test.dart |
+++ b/tests/compiler/dart2js/type_checker_test.dart |
@@ -2181,7 +2181,7 @@ analyzeTopLevel(String text, [expectedWarnings]) { |
if (expectedWarnings == null) expectedWarnings = []; |
if (expectedWarnings is !List) expectedWarnings = [expectedWarnings]; |
- MockCompiler compiler = new MockCompiler.internal(); |
+ MockCompiler compiler = new MockCompiler.internal(enableAsyncAwait: true); |
compiler.diagnosticHandler = createHandler(compiler, text); |
return compiler.init("import 'dart:async';").then((_) { |