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

Wrongly parsed invalid code #233

Open
fisker opened this issue Dec 22, 2022 · 1 comment
Open

Wrongly parsed invalid code #233

fisker opened this issue Dec 22, 2022 · 1 comment
Assignees

Comments

@fisker
Copy link
Collaborator

fisker commented Dec 22, 2022

class A {
	a b
}

should be invalid.

> require('meriyah').parse('class A { a b }', {next: true})
{
  type: 'Program',
  sourceType: 'script',
  body: [
    {
      type: 'ClassDeclaration',
      id: [Object],
      superClass: null,
      decorators: [],
      body: [Object]
    }
  ]
}
@3cp 3cp self-assigned this Dec 23, 2022
@3cp
Copy link
Member

3cp commented Dec 29, 2022

Few more missed rejections:

class A {
a = 1, 2
}
class A {
a = 1, b = 2
}

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