Index: tests/compiler/dart2js/compiler_helper.dart |
diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart |
index 036f2ed004faf60f0e45ad1f86bcc6d24285c5d4..8953792052dcca23f046fd0c79d54a3aac125a55 100644 |
--- a/tests/compiler/dart2js/compiler_helper.dart |
+++ b/tests/compiler/dart2js/compiler_helper.dart |
@@ -127,6 +127,7 @@ Future<String> compileAll(String code, |
trustTypeAnnotations: trustTypeAnnotations, |
expectedWarnings: expectedWarnings, |
outputProvider: outputCollector); |
+ compiler.diagnosticHandler = createHandler(compiler, code); |
return compiler.runCompiler(uri).then((_) { |
Expect.isFalse(compiler.compilationFailed, |
'Unexpected compilation error(s): ${compiler.errors}'); |