diff options
author | Jake Leahy <jake@leahy.dev> | 2023-12-20 03:27:24 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 17:27:24 +0100 |
commit | db9d8003b074cb6d150f7ece467f29006ccefde7 (patch) | |
tree | a1c37b053d97f38911bb6d53355cb9a1aa45910c /.github/workflows/ci_publish.yml | |
parent | 6618448ced6f4f6d65d830d355e819996f654b57 (diff) | |
download | Nim-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