Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1820)

Unified Diff: tests/compiler/dart2js/assert_message_throw_test.dart

Issue 2936233003: Remove Compiler.mainApp and Compiler.mainFunction (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
« no previous file with comments | « tests/compiler/dart2js/array_tracing_mirror_test.dart ('k') | tests/compiler/dart2js/benign_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698