Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

🐛 Parser: Allow super in constructor parameter. #3613

Closed
1 task done
MichaReiser opened this issue Nov 9, 2022 · 1 comment · Fixed by #3678
Closed
1 task done

🐛 Parser: Allow super in constructor parameter. #3613

MichaReiser opened this issue Nov 9, 2022 · 1 comment · Fixed by #3678
Assignees
Labels
A-Parser Area: parser L-JavaScript Langauge: JavaScript S-Bug: confirmed Status: report has been confirmed as a valid bug

Comments

@MichaReiser
Copy link
Contributor

Environment information

Playground

What happened?

Rome emits syntax errors for the following valid program:

class A extends B {
  constructor(c = super()) {}
}

Expected result

Rome parses the program without syntax errors.

Code of Conduct

  • I agree to follow Rome's Code of Conduct
@MichaReiser MichaReiser added S-Bug: confirmed Status: report has been confirmed as a valid bug L-JavaScript Langauge: JavaScript A-Parser Area: parser labels Nov 9, 2022
@denbezrukov
Copy link
Contributor

Could I try to fix it?🙏

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Parser Area: parser L-JavaScript Langauge: JavaScript S-Bug: confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants