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 0563a637886f8976ec1198340095a694a89e9fe2..3bf8b7bc5f78fd68abf3dace7be6e92949726181 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.mainFunction; |
+ var main = compiler.frontendStrategy.elementEnvironment.mainFunction; |
Expect.isNotNull(main, "Could not find 'main'"); |
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement; |