You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the parser with the option loc: true, there are many cases where the locations show the same line/column numbers for the start and end of the node.
The common case is Identifiers, though this also seems to appear in other places like in VariableDeclarations and NumberLiterals. The attached file shows a basic reproducer along with the AST that run.js produces when {loc: true} is added to the parse invocation. All of the Identifier locations are incorrect in the JSON.