Files
Nim/tests/macros
Jake Leahy 8efdc313a3 Don't crash for invalid toplevel parseStmt/Expr calls (#23089)
This code will crash `check`/`nimsuggest` since the `ra` register is
uninitialised

```nim
import macros

static:
  discard parseExpr("'")
```
Now it assigns an empty node so that it has something

Testament changes were so I could properly write a test. It would pass
even with a segfault since it could find the error

(cherry picked from commit db9d8003b0)
2024-04-19 16:37:16 +02:00
..
2019-05-29 22:21:51 +02:00
2021-04-02 11:56:30 +02:00
2019-02-06 22:31:36 -06:00
2020-10-30 15:53:45 +01:00
2023-04-11 09:37:53 +02:00
2017-07-25 09:28:23 +02:00
2016-12-20 22:42:25 +01:00
2020-09-16 21:37:23 +02:00
2019-09-27 07:02:54 +02:00
2019-11-06 14:35:45 +01:00
2019-05-21 21:31:40 +02:00
2019-05-30 11:13:29 +02:00
2017-07-25 09:28:23 +02:00
2020-08-27 15:50:59 +02:00
2020-07-14 16:44:56 +02:00
2017-07-25 09:28:23 +02:00
2017-07-25 09:28:23 +02:00
2018-12-11 21:23:25 +01:00
2019-01-13 17:19:36 +01:00
2018-01-18 11:40:18 +01:00
2017-07-25 09:28:23 +02:00