-
Notifications
You must be signed in to change notification settings - Fork 787
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
ES6 feature: Rest Parameters: tracking Issue #1011
Comments
@ariya can you respond to the estree issue about rest and defaults? I think we may want to take acorns approach here. |
@mikesherov I'm not sure why we want to deviate from the existing SpiderMonkey AST for this case. |
Still errors on rest parameters for arrow function expressions for now as those are a bit more involved and require a more significant refactor. Refs jquery#1011
Still errors on rest parameters for arrow function expressions for now as those are a bit more involved and require a more significant refactor. Refs jquery#1011
Still errors on rest parameters for arrow function expressions for now as those are a bit more involved and require a more significant refactor. Refs jquery#1011
Still errors on rest parameters for arrow function expressions for now as those are a bit more involved and require a more significant refactor. Refs jquery#1011
Just a heads up: I was doing some experimentation and found that there's no good way to support both the harmony branch So we can really only do one or the other but not both (as opposed to |
@nzakas no way to add a flag rather than doing a second loop? |
Sure, but that's still a breaking change. My point is that existing code will break if we support both at the same time. If we need a breaking change, might as well go all the way and remove |
@nzakas I see, you mean consumer code. I'm +1 for removing all the way. |
@jeffmo ^ ? |
Agreed, let's rip the band-aid off |
Hmm, maybe I missed something, but when did I discuss keeping the compatibility? Rest parameter was not feature in 2.0 anyway. |
@ariya : I think the breaking-change-ness is only in reference to a breaking change within the harmony branch |
@ariya we sort of glossed over it in the meeting quickly. Glad we're all in agreement to just rip off the baindaid! |
@nzakas, you have sample code for the switch to restElement? |
Assuming you mean consumer code that would be confused by having both, escope is a good example: https://github.com/estools/escope/blob/master/src/referencer.js#L221 |
@mikesherov Anything here that is still blocking 2.1? |
@ariya, yes, the switch from defaults/rest properties to resElement/AssigmentPattern |
…tion.rest and Function.defaults Refs jquery#1011
Syntax:
Spec:
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-functions-and-classes
Remaining Tasks:
The text was updated successfully, but these errors were encountered: