rainforestapp / decaf

Coffeescript to ES.next transpiler. Now maintained over at
https://github.com/juliankrispel/decaf
MIT License
106 stars 10 forks source link

Don't declare a destructured var in multiple scopes #149

Closed GoodForOneFare closed 8 years ago

GoodForOneFare commented 8 years ago

Fixes #146.

The root cause of #146 was needle = path.value.left.name attempting to grab a name from an ArrayExpression (so needle was always undefined). To fix this, I've added a new function that handles all destructuring assignments in a reasonably sane manner.

arty-name commented 8 years ago

Thanks!