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

Unified Diff: lib/compiler/implementation/ssa/builder.dart

Issue 11049023: [dart2js] Report an error if throw is used outside of catch expression without an argument. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
Index: lib/compiler/implementation/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index c3deabd100b724d52d9546d5d613a49114ed22b0..c895e244f727ecc967faef3298e07cc68c83daca 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -3197,8 +3197,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
HInstruction exception = rethrowableException;
if (exception === null) {
exception = graph.addConstantNull(constantSystem);
- compiler.reportError(node,
- 'throw without expression outside catch block');
+ compiler.reportError(node, MessageKind.THROW_WITHOUT_EXPRESSION);
ahe 2012/10/03 09:57:39 This would be an internal error now.
Roman 2012/10/03 10:07:34 Done. I also changed the wording to 'rethrowableEx
}
close(new HThrow(exception, isRethrow: true));
} else {

Powered by Google App Engine
This is Rietveld 408576698