Index: tests/compiler/dart2js/kernel/constructors_test.dart |
diff --git a/tests/compiler/dart2js/kernel/constructors_test.dart b/tests/compiler/dart2js/kernel/constructors_test.dart |
index bc5b8cc28fa0868bb3f0b2f22277ec6cf4b3ee2a..1acb6889a01ba688d383b14978f1f2de76364429 100644 |
--- a/tests/compiler/dart2js/kernel/constructors_test.dart |
+++ b/tests/compiler/dart2js/kernel/constructors_test.dart |
@@ -70,7 +70,8 @@ main() => new Foo(); |
} |
defaultConstructorFor(String className) => (Compiler compiler) { |
- LibraryElement mainApp = compiler.mainApp; |
+ LibraryElement mainApp = |
+ compiler.frontendStrategy.elementEnvironment.mainLibrary; |
ClassElement clazz = mainApp.find(className); |
return clazz.lookupDefaultConstructor(); |
}; |