Files
Nim/tests/async
ringabout 26b86c8f4d Makes except: panics on Defect (#24821)
implements https://github.com/nim-lang/RFCs/issues/557


It inserts defect handing into a bare except branch

```nim
try:
  raiseAssert "test"
except:
  echo "nope"
```

=>

```nim
try:
  raiseAssert "test"
except:
  # New behaviov, now well-defined: **never** catches the assert, regardless of panic mode
  raiseDefect()
  echo "nope"
```

In this way, `except` still catches foreign exceptions, but panics on
`Defect`. Probably when Nim has `except {.foreign.}`, we can extend
`raiseDefect` to foreign exceptions as well. That's supposed to be a
small use case anyway.

 `--legacy:noPanicOnExcept` is provided for a transition period.
2025-04-03 16:09:58 +02:00
..
2021-09-19 23:35:50 +02:00
2018-12-11 21:23:22 +01:00
2020-12-28 14:13:21 +01:00
2020-08-08 07:24:54 +02:00
2020-11-02 14:17:09 +01:00
2017-05-16 22:09:19 +02:00
2020-03-30 13:18:12 +02:00
2016-09-07 12:19:06 +03:00
2018-12-11 21:23:22 +01:00
2018-12-11 21:23:21 +01:00
2018-12-11 21:23:22 +01:00
2018-11-07 15:22:02 +01:00
2020-03-30 13:18:12 +02:00
2016-10-20 15:20:27 +02:00
2020-03-30 13:18:12 +02:00
2018-04-30 02:52:58 +02:00
2014-09-09 01:17:07 +01:00
2016-01-11 11:11:44 +01:00
2020-03-30 13:18:12 +02:00
2016-09-17 13:22:04 +02:00
2016-07-08 10:34:12 +02:00