Commit f16d4af
wdsmini
fix(30408): improve error message for labels used before definition
The error message 'Jump target cannot cross function boundary' was confusing
because it didn't indicate which label was causing the issue. This change
adds the label name to the error message when available.
Before: 'Jump target cannot cross function boundary.'
After: 'Jump target 'loopend' cannot cross function boundary.'
Fixes #304081 parent 77ddb5b commit f16d4af
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53030 | 53030 | | |
53031 | 53031 | | |
53032 | 53032 | | |
53033 | | - | |
| 53033 | + | |
53034 | 53034 | | |
53035 | 53035 | | |
53036 | 53036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
310 | 314 | | |
311 | 315 | | |
312 | 316 | | |
| |||
0 commit comments