This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 238
Arrow functions with a single param as default arguments to functions #193
Labels
Comments
@bucaran Is it only |
It could be anything, it's just the argument name. I updated the example. @pchaigno |
I looked into this a while ago and found that it was because the arrow regex matcher currently mandates an opening and closing parentheses before it'll match |
Is this valid too? function f(a = x, y => x + y) {} |
It's not. The following is: function f(a = x, y = () => {}) {
} |
Ouch! That's going to be a tricky one... |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: