jashkenas/coffee-script — pull request #2213 by geraldalewis (2012-03-23 17:29:45+00:00)
Title: Issue #2211 -- splats in destructured parameters

#2211 **Splat Value "xx" has no method 'isArray'**
Opened by @nikita-volkov on **March 22, 2012**

The problem:

```bash
coffee -bpe '([a...]) ->'
```

would throw the following error:

```bash
TypeError: Object
Splat
Value "a" has no method 'isArray'
at Param.names (.../nodes.js:1738:24)
```

The solution: A check for `Splat`s in the `Parameter::names` method. If a splat is detected, its base name is added to the array of parameter names.