Skip to content
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

Support RestElement #236

Merged
merged 1 commit into from
May 27, 2015
Merged

Support RestElement #236

merged 1 commit into from
May 27, 2015

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented May 27, 2015

Closes #225.

@Constellation
Copy link
Member

LGTM

@Constellation
Copy link
Member

After seeing the test is pased, i'll merge it.

Constellation added a commit that referenced this pull request May 27, 2015
@Constellation Constellation merged commit f845b2c into estools:master May 27, 2015
@Constellation
Copy link
Member

Thank you!

@ArtemGovorov
Copy link

Shouldn't it be generatePattern as opposed to generateIdentifier? Spec allows the argument to be a pattern https://github.com/estree/estree/blob/master/es6.md#restelement

@ef4
Copy link
Contributor Author

ef4 commented May 28, 2015

@ArtemGovorov I see you're correct, I will submit another PR that expands coverage to all patterns.

ef4 added a commit to ef4/escodegen that referenced this pull request May 28, 2015
This is a followup to estools#236 that brings RestElement into full spec
compliance.
ef4 added a commit to ef4/escodegen that referenced this pull request May 28, 2015
This is a followup to estools#236 that brings RestElement into full spec
compliance.
@michaelficarra
Copy link
Member

That's a spec bug. I will submit an estree issue.

edit: Oops, I was thinking only of ArrayBindingPattern, not of ArrayAssignmentPattern.

@ef4
Copy link
Contributor Author

ef4 commented May 28, 2015

If it's a bug, it seems to already be implemented in multiple places. esprima supports it, and babel (uses acorn?) supports it too.

@michaelficarra
Copy link
Member

See my edit above. I made a mistake.

ArtemGovorov pushed a commit to wallabyjs/escodegen that referenced this pull request May 18, 2016
This is a followup to estools#236 that brings RestElement into full spec
compliance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support RestElement
4 participants