| Index: tests/compiler/dart2js/deferred_mirrors_test.dart
|
| diff --git a/tests/compiler/dart2js/deferred_mirrors_test.dart b/tests/compiler/dart2js/deferred_mirrors_test.dart
|
| index e7d878dc62118998f71ceddd2614d6e3624d5d83..66845878c9751be90477b0a0ec923ee1e0ddfdac 100644
|
| --- a/tests/compiler/dart2js/deferred_mirrors_test.dart
|
| +++ b/tests/compiler/dart2js/deferred_mirrors_test.dart
|
| @@ -29,7 +29,7 @@ void main() {
|
|
|
| runTests() async {
|
| await runTest('memory:main.dart', (compiler) {
|
| - var main = compiler.mainFunction;
|
| + var main = compiler.frontendStrategy.elementEnvironment.mainFunction;
|
| Expect.isNotNull(main, "Could not find 'main'");
|
| compiler.deferredLoadTask.onResolutionComplete(
|
| main, compiler.resolutionWorldBuilder.closedWorldForTesting);
|
| @@ -53,7 +53,7 @@ runTests() async {
|
| Expect.isTrue(true);
|
| });
|
| await runTest('memory:main3.dart', (compiler) {
|
| - var main = compiler.mainFunction;
|
| + var main = compiler.frontendStrategy.elementEnvironment.mainFunction;
|
| Expect.isNotNull(main, "Could not find 'main'");
|
| compiler.deferredLoadTask.onResolutionComplete(
|
| main, compiler.resolutionWorldBuilder.closedWorldForTesting);
|
| @@ -69,7 +69,7 @@ runTests() async {
|
| Expect.equals(outputUnitForElement(main), outputUnitForElement(C));
|
| });
|
| await runTest('memory:main4.dart', (compiler) {
|
| - var main = compiler.mainFunction;
|
| + var main = compiler.frontendStrategy.elementEnvironment.mainFunction;
|
| Expect.isNotNull(main, "Could not find 'main'");
|
| compiler.deferredLoadTask.onResolutionComplete(
|
| main, compiler.resolutionWorldBuilder.closedWorldForTesting);
|
|
|