-
Notifications
You must be signed in to change notification settings - Fork 16
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
Object spread #10
Comments
I'm leaning heavily on Esprima to parse JS files, so I'd need to check upstream to see if they handle that yet. |
Don't think esprima has support yet (https://astexplorer.net/) but haven't checked beside that site. |
@wardpeet Great site, didn't know that existed! 😄 Yeah it looks like object spread isn't supported yet 😢 |
@kegsay would you be open to move to the babel parser? |
Provided the tests still pass, sure! |
For object rest/spread support in Esprima, please track jquery/esprima#1588. |
That sounds great, I'll update the deps and give it a go. Thanks! |
@kegsay Note that there is no released version with that feature yet. You may want to keep an eye on jquery/esprima#1749. In general, I believe it is worth stating the project-specific policy regarding syntax (or any features, for that matter) that is not part of the official ECMA-262 specification (object rest/spread will be in ES2018, which is a year away). Things will change until the final specification, and that can create unnecessary churns. |
@ariya I sympathise with not wanting to chase a moving target: I would most likely do the same thing if I were in your shoes. That being said, in order for this project to be useful in the real world, I need it to support all the weird and wonderful things JS devs are doing, and that so happens to be draft/experimental syntax (or rather, it's anything which the Babel devs want to implement since they are the ones who are effectively allowing devs to use this syntax). As for the idea of using a separate "development" branch which tracks these things: I think it's a good idea overall. From a code hygiene perspective though, I think this ship has sailed given JSX support is gated behind a |
#15 might give more options for developers to change parsers but it's not perfect yet. |
Seems that object spread doesn't work when converting.
The text was updated successfully, but these errors were encountered: