Index: tests/compiler/dart2js/use_checks_test.dart |
diff --git a/tests/compiler/dart2js/use_checks_test.dart b/tests/compiler/dart2js/use_checks_test.dart |
index 4056696a2944781a9fcf3621bfa48eaeb23594c0..830b372008e1170de02e3eb5760b8f3e6da75b0e 100644 |
--- a/tests/compiler/dart2js/use_checks_test.dart |
+++ b/tests/compiler/dart2js/use_checks_test.dart |
@@ -28,7 +28,7 @@ main() { |
memorySourceFiles: MEMORY_SOURCE_FILES, |
options: ['--enable-checked-mode']); |
var compiler = result.compiler; |
- var element = compiler.mainFunction; |
+ var element = compiler.frontendStrategy.elementEnvironment.mainFunction; |
var code = compiler.backend.getGeneratedCode(element); |
Expect.isTrue(code.contains('+'), code); |
}); |