Fixes #2621 -- buggy function parameter name detection with complex destructuring in param list.

This commit is contained in:
Jeremy Ashkenas
2013-01-05 18:32:57 -10:00
parent 2c20ac6aa9
commit cc6f0451e7
3 changed files with 12 additions and 5 deletions

View File

@@ -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) {