Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: dart/lib/compiler/implementation/apiimpl.dart

Issue 10572014: Don't crash when a file is missing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/apiimpl.dart
diff --git a/dart/lib/compiler/implementation/apiimpl.dart b/dart/lib/compiler/implementation/apiimpl.dart
index f983f5a86588f77b8185b0fd7ed0498d272e0e1f..709f190b4bea4c7494f4a8bd55b2d671d9b214de 100644
--- a/dart/lib/compiler/implementation/apiimpl.dart
+++ b/dart/lib/compiler/implementation/apiimpl.dart
@@ -54,8 +54,7 @@ class Compiler extends leg.Compiler {
if (node !== null) {
cancel("$exception", node: node);
} else {
- reportDiagnostic(const leg.SourceSpan(null, null, null),
- "$exception", api.Diagnostic.ERROR);
+ reportDiagnostic(null, "$exception", api.Diagnostic.ERROR);
throw new leg.CompilerCancelledException("$exception");
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698