jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.96k stars 510 forks source link

Destructuring with default values in parameters throws an error. #2269

Closed ghost closed 8 years ago

ghost commented 8 years ago
({ foo = true }) => foo;

JSCS 3.0 trips over this line of code, where 2.0 doesn't. Expected token value ":" but = found

ghost commented 8 years ago

Closing, belongs here: https://github.com/cst/cst/issues/118