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

AssignmentPattern: escodegen removes = and add undefined #388

Open
wizzardio opened this issue Dec 31, 2018 · 1 comment
Open

AssignmentPattern: escodegen removes = and add undefined #388

wizzardio opened this issue Dec 31, 2018 · 1 comment

Comments

@wizzardio
Copy link

Hi, guys. I'm working with some esprima/escodegen task and during work I found one issue.
I'm adding some changes to my code via these tools and when I re-create my code (after changes), escodegen removes = and add undefined.

Sample:
const { option1, options: data = {}, callback } = args;

Received:
const { option1, options: data undefined {}, callback } = args;

As I understood, escodegen has some troubles with new ES features, is it possible to fix in in some way or ignore.

@sanex3339
Copy link
Contributor

This should be fixed

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

No branches or pull requests

2 participants