Commit 4fb3027
fix(executor): do not read a keyword-named method as a control-flow head
`p.catch(fn)` is a call whose name happens to be a keyword, and what
follows its `)` is an operator rather than a statement — so the division in
`p.catch(fn) / 2` opened regex mode and ran over the quotes around any
reference later on that line. A control-flow head is never a property
access, so the check now refuses one that follows a dot.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent d5c2b89 commit 4fb3027
2 files changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
950 | 967 | | |
951 | 968 | | |
952 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
1194 | | - | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
1195 | 1205 | | |
1196 | 1206 | | |
1197 | 1207 | | |
| |||
0 commit comments