Skip to content

Support for defaults when destructuring parameters#297

Merged
michaelficarra merged 1 commit intoestools:masterfrom
tswaters:destructure
Aug 5, 2016
Merged

Support for defaults when destructuring parameters#297
michaelficarra merged 1 commit intoestools:masterfrom
tswaters:destructure

Conversation

@tswaters
Copy link
Copy Markdown
Contributor

@tswaters tswaters commented Jun 4, 2016

Fixes #296

@benjamind
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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?

Comment thread escodegen.js
if (value.type === 'AssignmentPattern') {
result.push(this.AssignmentPattern(value, Precedence.Sequence, E_TTT));
}
else {
Copy link
Copy Markdown
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
Copy Markdown
Member

LGTM. Sorry for taking this long to review.

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

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

@michaelficarra
Copy link
Copy Markdown
Member

Published 1.8.1. Thanks for the reminder.

@benjamind
Copy link
Copy Markdown

Nice work. Thanks!

@DavidGDD
Copy link
Copy Markdown

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