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

Is there anyway,we could extend this to accept class level public fields as? #430

Open
ashishyog opened this issue Apr 16, 2020 · 1 comment

Comments

@ashishyog
Copy link

Parser starts giving error "Only methods are allowed in class".

For below example:

class Rectangle {
height;
width;
constructor(height, width) {
this.height = height;
this.width = width;
}
}

any idea how could we support this?

@michaelficarra
Copy link
Member

We will add support for these in a future release. Currently, shift-parser-js supports only the features of ES2018.

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