-
Notifications
You must be signed in to change notification settings - Fork 60
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
javascript reduce doesn't work with arrow function #109
Comments
This is special syntax of ECMAScript 6. Like several web browsers, vash doesn't support ES6 yet. |
I am aware of that and I am asking this because |
I believe the problem is that vash is "optimizing" out the nested parens because it doesn't know about arrow functions. I don't plan to add official ES2015 support to vash at this time. |
Yep, that's okay, I was just wondering. |
@kirbysayshi would you mind contributions for it though? I feel it's very bad when sometimes arrow functions work, sometimes not... that's the recipe for wasting hundreds of hours not knowing what to fix. |
This line
throws this
while this
works.
node@v5.9.1
vash@0.12.1
The text was updated successfully, but these errors were encountered: