Index: tests/compiler/dart2js/assert_message_throw_test.dart |
diff --git a/tests/compiler/dart2js/assert_message_throw_test.dart b/tests/compiler/dart2js/assert_message_throw_test.dart |
index 729515388d12bf8b97877635e35b59dc30ec3b1a..be95a245916a386d920de7dacaa775287ff5e66f 100644 |
--- a/tests/compiler/dart2js/assert_message_throw_test.dart |
+++ b/tests/compiler/dart2js/assert_message_throw_test.dart |
@@ -63,7 +63,7 @@ main() { |
compiler.resolutionWorldBuilder.closedWorldForTesting; |
void check(String methodName, TypeMask expectedReturnType) { |
- LibraryElement mainApp = compiler.mainApp; |
+ LibraryElement mainApp = closedWorld.elementEnvironment.mainLibrary; |
MemberElement element = mainApp.find(methodName); |
TypeMask typeMask = simplify( |
compiler.globalInference.results.resultOfMember(element).returnType, |