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

Arrow methods #3405

Closed
oskarkrawczyk opened this issue Jun 7, 2019 · 1 comment
Closed

Arrow methods #3405

oskarkrawczyk opened this issue Jun 7, 2019 · 1 comment

Comments

@oskarkrawczyk
Copy link

This has been risen by one of our users over at jsfiddle/jsfiddle-users#1457

Apparently this is valid syntax:

class Bar {
   someMethod = () => {
   }
}

Which will throw errors and warnings in the current JSHint version.

More details:

@jugglinmike
Copy link
Member

I take it your users aren't writing code for Firefox ;)

In any event, the proposal has reached stage 3, which is well beyond JSHint's criteria for maturity. That means we're on the hook for supporting it. We have a tracking issue for that, but it referenced the proposal by an outdated name. I've fixed that, so I'd like to continue to use that issue to track implementation:

#3139

Can't say when I'll have time to implement it, but I'll be happy to guide anyone who wants to land a hand.

Thanks for taking the time to report this, Oskar!

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

No branches or pull requests

2 participants