bublejs / buble

https://buble.surge.sh
MIT License
871 stars 67 forks source link

Add support for destrcturing catch clause params #82

Closed nathancahill closed 6 years ago

nathancahill commented 6 years ago

Fixes #76. With this, all cases in Babel's babel-plugin-transform-destructuring are covered.

Changes the check from regex /Function/ to an explicit list of types to transpile parameters of.

CatchClause uses param = obj instead of params = [obj], so the transpileParameters function now supports both.

adrianheine commented 6 years ago

Nice!