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

Side by Side Diff: test/codegen/try_catch.dart

Issue 1062823004: Fix a couple codegen crashers (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/try_catch.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 foo() { 5 foo() {
6 try { 6 try {
7 throw "hi there"; 7 throw "hi there";
8 } on String catch (e, t) { 8 } on String catch (e, t) {
9 } catch (e, t) { 9 } catch (e, t) {
10 rethrow; 10 rethrow;
(...skipping 20 matching lines...) Expand all
31 31
32 qux() { 32 qux() {
33 try { 33 try {
34 throw "on only"; 34 throw "on only";
35 } on String catch (e, t) { 35 } on String catch (e, t) {
36 // unreachable 36 // unreachable
37 rethrow; 37 rethrow;
38 } 38 }
39 } 39 }
40 40
41 wub() {
42 try {
43 throw "on without exception parameter";
44 } on String {
45 }
46 }
47
41 main() { 48 main() {
42 foo(); 49 foo();
43 bar(); 50 bar();
44 baz(); 51 baz();
45 qux(); 52 qux();
53 wub();
46 } 54 }
OLDNEW
« 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