Index: tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart |
diff --git a/tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart b/tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart |
index 3eec777c5b1fa400f82a8f06c5bac1c9bf8ad41a..6723c17fca620fb1bb7cf11eb3eeed5b2afb96a0 100644 |
--- a/tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart |
+++ b/tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart |
@@ -23,7 +23,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); |
@@ -38,7 +38,7 @@ void main() { |
var foo2 = lib2.find("foo"); |
var ou_lib2 = outputUnitForElement(foo2); |
- var mainApp = compiler.mainApp; |
+ var mainApp = compiler.frontendStrategy.elementEnvironment.mainLibrary; |
var fooMain = mainApp.find("foo"); |
var ou_lib1_lib2 = outputUnitForElement(fooMain); |