Index: tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart |
diff --git a/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart b/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart |
index e07b55256e231897d5db8384be8de6f1cb667400..9c91d69acaeec4b6bd3187fa21a2e46461e3d190 100644 |
--- a/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart |
+++ b/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart |
@@ -22,7 +22,7 @@ void main() { |
return compiler.libraryLoader.lookupLibrary(Uri.parse(name)); |
} |
- var main = compiler.mainApp.find(Compiler.MAIN); |
+ var main = compiler.mainFunction; |
Expect.isNotNull(main, "Could not find 'main'"); |
compiler.deferredLoadTask.onResolutionComplete(main); |