Index: tests/compiler/dart2js/mock_compiler.dart |
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart |
index f210f1eff16b5576f5bf04bd4852e6475c9119e8..978f924daa3a37acbf0b58c73b6e9a22489acc45 100644 |
--- a/tests/compiler/dart2js/mock_compiler.dart |
+++ b/tests/compiler/dart2js/mock_compiler.dart |
@@ -377,7 +377,7 @@ api.DiagnosticHandler createHandler(MockCompiler compiler, String text, |
if (kind == api.Diagnostic.VERBOSE_INFO && !verbose) return; |
SourceFile sourceFile; |
if (uri == null) { |
- sourceFile = new StringSourceFile('analysis', text); |
+ sourceFile = new StringSourceFile.fromName('analysis', text); |
} else { |
sourceFile = compiler.sourceFiles[uri.toString()]; |
} |