Index: tests/compiler/dart2js/kernel/helper.dart |
diff --git a/tests/compiler/dart2js/kernel/helper.dart b/tests/compiler/dart2js/kernel/helper.dart |
index 65f219d35007f17de68c0a085dc1ac2d0d988e07..d64c48cbe40bacdbe028e78b7e719ba2725977fc 100644 |
--- a/tests/compiler/dart2js/kernel/helper.dart |
+++ b/tests/compiler/dart2js/kernel/helper.dart |
@@ -33,7 +33,8 @@ Future<String> compile(String code, |
memorySourceFiles: {'main.dart': code}, options: options); |
expect(result.isSuccess, isTrue); |
Compiler compiler = result.compiler; |
- LibraryElement mainApp = compiler.mainApp; |
+ LibraryElement mainApp = |
+ compiler.frontendStrategy.elementEnvironment.mainLibrary; |
Element element; |
if (lookup is String) { |
element = mainApp.find(lookup); |