-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
SyntaxErrors ignore startLine option #9015
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
Bug Report
Current Behavior
If a SyntaxError is thrown from @babel/parse, startLine is ignored (it uses the "real" start line).
Input Code
https://runkit.com/tolmasky/babel-issue-9015---syntaxerrors-ignore-startline-option
const { parse } = require("@babel/parser");
parse("5+", { startLine: 10 });Expected behavior/code
It should take into account startLine.
Environment
- Babel version(s): 7.1.5
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