Index: tests/compiler/dart2js/analyze_only_test.dart |
diff --git a/tests/compiler/dart2js/analyze_only_test.dart b/tests/compiler/dart2js/analyze_only_test.dart |
index c17bfe94993f130a00016adab6d92f8781a81f3d..c890e852c40f03ff45421d9257022304e776e1a5 100644 |
--- a/tests/compiler/dart2js/analyze_only_test.dart |
+++ b/tests/compiler/dart2js/analyze_only_test.dart |
@@ -19,7 +19,7 @@ runCompiler(String main, List<String> options, |
Future<String> localProvider(Uri uri) { |
if (uri.scheme != 'main') return dummy.provider(uri); |
- return new Future<String>.immediate(main); |
+ return new Future<String>.value(main); |
} |
void localHandler(Uri uri, int begin, int end, |