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 for defaults when destructuring parameters #297

Merged
merged 1 commit into from
Aug 5, 2016

Conversation

tswaters
Copy link
Contributor

@tswaters tswaters commented Jun 4, 2016

Fixes #296

@benjamind
Copy link

Great work on this @tswaters!

Do you know how long this will be before we see a new 1.8.x release with this included? Could really use this.

@tswaters
Copy link
Contributor Author

I'm not sure... I'm not a contributer to escodegen... just noticed a problem and created a pull request.

@michaelficarra
Copy link
Member

Sorry, I've been meaning to review this for a while now. I'll get to it (and if all's good, make a release) ASAP.

@DavidGDD
Copy link

DavidGDD commented Aug 3, 2016

I'm using Istanbul (which uses escodegen) and i've got the same problem with destructuring... Will this pull-requests be merged soon?

if (value.type === 'AssignmentPattern') {
result.push(this.AssignmentPattern(value, Precedence.Sequence, E_TTT));
}
else {
Copy link
Member

@michaelficarra michaelficarra Aug 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this style, but I'm not going to let it block merging this PR.

edit: 932847d

@michaelficarra
Copy link
Member

LGTM. Sorry for taking this long to review.

@michaelficarra michaelficarra merged commit 9844f64 into estools:master Aug 5, 2016
@benjamind
Copy link

Now this is merged, can you publish a new 1.8.x release to npm?

@michaelficarra
Copy link
Member

Published 1.8.1. Thanks for the reminder.

@benjamind
Copy link

Nice work. Thanks!

@DavidGDD
Copy link

DavidGDD commented Aug 9, 2016

Thanks a lot!

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.

4 participants