escodegen icon indicating copy to clipboard operation
escodegen copied to clipboard

AssignmentPattern: escodegen removes = and add undefined

Open wizzardio opened this issue 6 years ago • 1 comments

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.

wizzardio avatar Dec 31 '18 14:12 wizzardio

This should be fixed

sanex3339 avatar Jun 11 '20 12:06 sanex3339