Index: tests/compiler/dart2js/benign_error_test.dart |
diff --git a/tests/compiler/dart2js/benign_error_test.dart b/tests/compiler/dart2js/benign_error_test.dart |
index 143239b3b162c4e6e41f8dea159fb5966559bbe7..3e01a7d193a08d6c82003f342cf3b850e2b207ef 100644 |
--- a/tests/compiler/dart2js/benign_error_test.dart |
+++ b/tests/compiler/dart2js/benign_error_test.dart |
@@ -34,6 +34,7 @@ testExamples(MessageKind kind) async { |
.isTrue(collector.errors.any((message) => message.messageKind == kind)); |
Compiler compiler = result.compiler; |
JavaScriptBackend backend = compiler.backend; |
- Expect.isNotNull(backend.generatedCode[compiler.mainFunction]); |
+ Expect.isNotNull(backend.generatedCode[ |
+ compiler.frontendStrategy.elementEnvironment.mainFunction]); |
} |
} |