Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong location of ParenthesizedExpression #152

Closed
fisker opened this issue Nov 4, 2020 · 1 comment
Closed

Wrong location of ParenthesizedExpression #152

fisker opened this issue Nov 4, 2020 · 1 comment

Comments

@fisker
Copy link
Collaborator

fisker commented Nov 4, 2020

require('meriyah').parse('(x)', {preserveParens: true, ranges: true}).body[0].expression
{
  type: 'ParenthesizedExpression',
  expression: { type: 'Identifier', name: 'x', start: 1, end: 2, range: [ 1, 2 ] },
  start: 1,
  end: 3,
  range: [ 1, 3 ]
}

Should be [0, 3]

@3cp 3cp closed this as completed in db468c2 Nov 4, 2020
@3cp
Copy link
Member

3cp commented Nov 4, 2020

released v3.1.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants