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

Unified Diff: test/codegen/try_catch.dart

Issue 1036333003: Fix try catch crasher bug due to null else case. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: ptal Created 5 years, 9 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 | « test/codegen/expect/try_catch.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/try_catch.dart
diff --git a/test/codegen/try_catch.dart b/test/codegen/try_catch.dart
index 844d7f24d1e59e2e0064a2783467efb0c79c1f11..e124d2263fb11ac10d1c2f04cc445438ed08f7a3 100644
--- a/test/codegen/try_catch.dart
+++ b/test/codegen/try_catch.dart
@@ -10,6 +10,7 @@ foo() {
rethrow;
}
}
+
bar() {
try {
throw "hi there";
@@ -19,7 +20,27 @@ bar() {
rethrow;
}
}
+
+baz() {
+ try {
+ throw "finally only";
+ } finally {
+ return true;
+ }
+}
+
+qux() {
+ try {
+ throw "on only";
+ } on String catch (e, t) {
+ // unreachable
+ rethrow;
+ }
+}
+
main() {
foo();
bar();
+ baz();
+ qux();
}
« no previous file with comments | « test/codegen/expect/try_catch.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698