mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Fixes #2621 -- buggy function parameter name detection with complex destructuring in param list.
This commit is contained in:
@@ -1919,7 +1919,7 @@
|
||||
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
|
||||
obj = _ref2[_i];
|
||||
if (obj instanceof Assign) {
|
||||
names.push(obj.value.unwrap().value);
|
||||
names.push.apply(names, this.names(obj.value.unwrap()));
|
||||
} else if (obj instanceof Splat) {
|
||||
names.push(obj.name.unwrap().value);
|
||||
} else if (obj instanceof Value) {
|
||||
|
||||
Reference in New Issue
Block a user