(x)
| 235 | |
| 236 | |
| 237 | function break_from_nested_catch(x) { |
| 238 | x -= 2; |
| 239 | L: |
| 240 | { |
| 241 | try { |
| 242 | x++; |
| 243 | try { |
| 244 | x++; |
| 245 | if (false) return -1; |
| 246 | break L; |
| 247 | } catch (o) { |
| 248 | x--; |
| 249 | } |
| 250 | } catch (o) { |
| 251 | x--; |
| 252 | } |
| 253 | } |
| 254 | return x; |
| 255 | } |
| 256 | |
| 257 | assertEquals(0, break_from_nested_catch(0)); |
| 258 | assertEquals(1, break_from_nested_catch(1)); |