Index: tests/compiler/dart2js/mirrors_used_test.dart |
diff --git a/tests/compiler/dart2js/mirrors_used_test.dart b/tests/compiler/dart2js/mirrors_used_test.dart |
index f1758a3dc685ac0190ac2d9039fa76ae55eea881..7d55cb088d687c6d042a629bdb5fc151913cafa0 100644 |
--- a/tests/compiler/dart2js/mirrors_used_test.dart |
+++ b/tests/compiler/dart2js/mirrors_used_test.dart |
@@ -113,7 +113,9 @@ void main() { |
for (var library in compiler.libraryLoader.libraries) { |
library.forEachLocalMember((member) { |
if (member.isClass) { |
- if (library == compiler.mainApp && member.name == 'Foo') { |
+ if (library == |
+ compiler.frontendStrategy.elementEnvironment.mainLibrary && |
+ member.name == 'Foo') { |
Expect.isTrue( |
compiler.backend.mirrorsData |
.isClassAccessibleByReflection(member), |