Index: tests/compiler/dart2js/constant_expression_test.dart |
diff --git a/tests/compiler/dart2js/constant_expression_test.dart b/tests/compiler/dart2js/constant_expression_test.dart |
index d8f582c5c412a746fbd1236da061e31e6e25be5f..023c932220c6b6b1bb3fdca0b6f12587c2dc5b28 100644 |
--- a/tests/compiler/dart2js/constant_expression_test.dart |
+++ b/tests/compiler/dart2js/constant_expression_test.dart |
@@ -210,7 +210,7 @@ Future testData(TestData data) async { |
memorySourceFiles: {'main.dart': source}, options: ['--analyze-all']); |
Compiler compiler = result.compiler; |
MemoryEnvironment environment = new MemoryEnvironment(compiler); |
- var library = compiler.mainApp; |
+ var library = compiler.frontendStrategy.elementEnvironment.mainLibrary; |
constants.forEach((String name, ConstantData data) { |
FieldElement field = library.localLookup(name); |
var constant = field.constant; |