-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Bug]: Some SyntaxErrors still ignore startLine option. #14123
Copy link
Copy link
Closed
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
💻
- Would you like to work on a fix?
How are you using Babel?
Programmatic API (babel.transform, babel.parse)
Input code
require("@babel/parser").parse("import.meta", { sourceType:"script", startLine: 10 })Configuration file name
No response
Configuration
N/A
Current and expected behavior
Following up from #9015, it appears only some of the SyntaxErrors were fixed to take into account he startLine option. As you can see in the example above, it is still possible to get SyntaxErrors with the unadjusted line number. Others however do respect it.
Environment
- Babel version: 7.16.7
- https://runkit.com/tolmasky/some-syntax-errors-still-ignore-the-startline-option
Possible solution
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue