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

Unified Diff: pkg/compiler/lib/src/kernel/front_end_adapter.dart

Issue 2991003002: dart2js: throw when receiving an internal-problem error from the FE. (Closed)
Patch Set: Created 3 years, 5 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: pkg/compiler/lib/src/kernel/front_end_adapter.dart
diff --git a/pkg/compiler/lib/src/kernel/front_end_adapter.dart b/pkg/compiler/lib/src/kernel/front_end_adapter.dart
index b2bc3ee390243e11ac71946cb9812ec583e25ceb..17fd4f3a41ce4eb16dd26ca27d89ba97d775566a 100644
--- a/pkg/compiler/lib/src/kernel/front_end_adapter.dart
+++ b/pkg/compiler/lib/src/kernel/front_end_adapter.dart
@@ -81,8 +81,9 @@ void reportFrontEndMessage(
// TODO(sigmund): translate message kinds using message.dart2jsCode
MessageKind kind = MessageKind.GENERIC;
switch (message.severity) {
- case fe.Severity.error:
case fe.Severity.internalProblem:
+ throw message.message;
+ case fe.Severity.error:
reporter.reportErrorMessage(
NO_LOCATION_SPANNABLE, kind, {'text': message.message});
break;
« 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