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

Unified Diff: pkg/compiler/lib/src/dart2js.dart

Issue 923103003: Avoid spurious "The compiler crashed" messages in batch mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix indentation. Created 5 years, 10 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 | tests/compiler/dart2js/dart2js_batch2_run.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index ca0ef6af424ad412305847b7eae9ad55c5d2990d..a4858f6dfe6ff66d3eb4aacc093ac5dfbea084a5 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -654,6 +654,9 @@ var compileFunc = api.compile;
Future<api.CompilationResult> internalMain(List<String> arguments) {
Future onError(exception, trace) {
+ // If we are already trying to exit, just continue exiting.
+ if (exception == _EXIT_SIGNAL) throw exception;
+
try {
print('The compiler crashed: $exception');
} catch (ignored) {
« no previous file with comments | « no previous file | tests/compiler/dart2js/dart2js_batch2_run.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698