Confusing error message for labels used before definition
See original GitHub issueThe following gives me an unexpected “TS1007: Jump target cannot cross function boundary error” in TS 3.3.33333
function foo() {
for (let i = 0; i < 10; i++) {
console.log(`${i}`);
continue loopend;
}
loopend:
console.log('end of loop');
}
Further investigation… you can jump to the start of the loop, so the error I would argue is that the error message is confusing.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13 (11 by maintainers)
Top Results From Across the Web
Error Messages: Examples, Best Practices & Common Mistakes
4 common mistakes with error messages. 1. Ambiguity. Your error messages should clearly define the problem. Ever gotten a message like the ...
Read more >Understanding SC 3.3.2:Labels or Instructions (Level A) - W3C
A field for entering a given name is clearly labeled with "Given Name" and the field for family name is labeled "Family Name"...
Read more >How to Use Error Messages in Online Forms - Zuko Analytics
Advice on how to make error messages in forms your friend and improve your checkout ... Unclear or confusing field labels; Complex requirements...
Read more >Error creating confusion matrix although label encoding done ...
In the data you have type float, while you defined classes (in the 3rd line from the end of the file) as strings....
Read more >List of Error-Prone Abbreviations
Use mL. Error-Prone Abbreviations, Symbols, and Dose Designations ... may have a dual meaning or may be confused with other common acronyms, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
~Did you try adding
3
s to the version to see if the error gets better?~Seems like a reasonable request.
you could have thrown a better error message, talking about this: https://stackoverflow.com/questions/59859011/break-says-error-jump-target-cannot-cross-function-boundary-typescript/59859151#59859151