Index: tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart |
diff --git a/tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart b/tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart |
index 779bee0c9fa82fac329a585a8f895f1a5b40f41a..19151d5eb1caaffc4f8a9568f72122c3c0d70289 100644 |
--- a/tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart |
+++ b/tests/compiler/dart2js/deferred_dont_inline_deferred_globals_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'"); |
compiler.deferredLoadTask.onResolutionComplete( |
main, compiler.resolutionWorldBuilder.closedWorldForTesting); |