1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

fix #4577; renamed destructured parameters with same default value (#4596)

This commit is contained in:
zdenko 2017-07-06 04:04:52 +02:00 committed by Geoffrey Booth
parent ab52fd75c2
commit 35eb58fae8
3 changed files with 12 additions and 2 deletions

View file

@ -3284,9 +3284,11 @@
}
if (obj instanceof Assign) {
if (obj.value instanceof Assign) {
obj = obj.value.variable;
} else {
obj = obj.value;
}
this.eachName(iterator, obj.value.unwrap());
this.eachName(iterator, obj.unwrap());
} else if (obj instanceof Splat) {
node = obj.name.unwrap();
iterator(node.value, node, this);