-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add rest spread support #75
Conversation
we can prob drop node 0.12 together with the major bump for #73 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, do you know of any other new js features that are supported in node but not in acorn?
I’m in favor or dropping 0.12, given that nobody should be using it at this point. I would want to bounce that off the most active maintainer before doing so though. I’m not totally up to speed which features we should of be supporting at this point but maybe it would be worth doing a thorough rundown at some point. |
@substack interested in your opinion on what we should do wrt semver and dropping support for 0.12. |
|
Rolled back 0.12 support on the PR. |
We absolutely should not have dropped older node support. This needs to be restored. |
Can you elaborate? Happy to restore. |
So far my tests in older nodes are failing in browserify 15 due solely to arrow syntax being used (in detective, i think?). That's a really silly reason to break things. Either we should stick with ES5 syntax or we should use a build process prepublish, as is npm best practice. |
Looks like my commits that supported 0.12 were pruned in the branch. I'll push those back up for reference. |
@ljharb I saved it actually for this very situation. Yay me from a few days ago: https://github.com/bcomnes/detective/tree/0.12 |
Detective was throwing when used with newer node code that uses spread operators. This adds a plugin to acorn which enables support for the spread operator until there is better built in support in acorn.