(x)
| 259 | |
| 260 | |
| 261 | function break_from_nested_finally(x) { |
| 262 | L: |
| 263 | { |
| 264 | try { |
| 265 | x++; |
| 266 | try { |
| 267 | x++; |
| 268 | if (false) return -1; |
| 269 | break L; |
| 270 | } finally { |
| 271 | x--; |
| 272 | } |
| 273 | } finally { |
| 274 | x--; |
| 275 | } |
| 276 | x--; // should not happen |
| 277 | } |
| 278 | return x; |
| 279 | } |
| 280 | |
| 281 | assertEquals(0, break_from_nested_finally(0)); |
| 282 | assertEquals(1, break_from_nested_finally(1)); |