summary refs log tree commit diff stats
path: root/.github/workflows/ci_publish.yml
diff options
context:
space:
mode:
authorJake Leahy <jake@leahy.dev>2023-12-20 03:27:24 +1100
committerGitHub <noreply@github.com>2023-12-19 17:27:24 +0100
commitdb9d8003b074cb6d150f7ece467f29006ccefde7 (patch)
treea1c37b053d97f38911bb6d53355cb9a1aa45910c /.github/workflows/ci_publish.yml
parent6618448ced6f4f6d65d830d355e819996f654b57 (diff)
downloadNim-db9d8003b074cb6d150f7ece467f29006ccefde7.tar.gz
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
Diffstat (limited to '.github/workflows/ci_publish.yml')
0 files changed, 0 insertions, 0 deletions