| Index: dart/lib/compiler/implementation/apiimpl.dart
|
| diff --git a/dart/lib/compiler/implementation/apiimpl.dart b/dart/lib/compiler/implementation/apiimpl.dart
|
| index 709f190b4bea4c7494f4a8bd55b2d671d9b214de..ff5c5dce481ce81451abb29874dd4fb4139a858b 100644
|
| --- a/dart/lib/compiler/implementation/apiimpl.dart
|
| +++ b/dart/lib/compiler/implementation/apiimpl.dart
|
| @@ -96,6 +96,9 @@ class Compiler extends leg.Compiler {
|
|
|
| void reportDiagnostic(leg.SourceSpan span, String message,
|
| api.Diagnostic kind) {
|
| + if (kind === api.Diagnostic.ERROR || kind === api.Diagnostic.CRASH) {
|
| + compilationFailed = true;
|
| + }
|
| if (span === null) {
|
| handler(null, null, null, message, kind);
|
| } else {
|
|
|