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
..
2021-04-02 11:56:30 +02:00
2020-10-30 15:53:45 +01:00
2023-04-11 09:37:53 +02: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
2020-08-27 15:50:59 +02:00
2020-07-14 16:44:56 +02:00