OLD | NEW |
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 // Check proper exception handler finalization, even for unreachable handlers. | 5 // Check proper exception handler finalization, even for unreachable handlers. |
6 | 6 |
7 void main() { | 7 void main() { |
8 try { | 8 try { |
9 print("Starting here"); | 9 print("Starting here"); |
10 throw 0; | 10 throw 0; |
11 try { | 11 try {} catch (e) {} |
12 } catch (e) { | |
13 } | |
14 } catch (e) { | 12 } catch (e) { |
15 print("Caught in here: $e"); | 13 print("Caught in here: $e"); |
16 } | 14 } |
17 try { | 15 try {} catch (e) {} |
18 } catch (e) { | |
19 } | |
20 } | 16 } |
OLD | NEW |