X Tutup
The Wayback Machine - https://web.archive.org/web/20201018064023/https://github.com/prettier/plugin-ruby/issues/653
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

TypeError possible due to array content beginning with a comment #653

Open
johannesluedke opened this issue Oct 13, 2020 · 1 comment
Open

TypeError possible due to array content beginning with a comment #653

johannesluedke opened this issue Oct 13, 2020 · 1 comment

Comments

@johannesluedke
Copy link

@johannesluedke johannesluedke commented Oct 13, 2020

Metadata

  • Ruby version: 2.7.1
  • @prettier/plugin-ruby version: 0.20.1 (also in 0.19.0)

Input

def foo
  [
    # bar
    200
  ]
end

leads to TypeError: Cannot read property 'type' of undefined

@jbielick
Copy link

@jbielick jbielick commented Oct 13, 2020

This appears to be a duplicate of #577

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup