fix rest parameter check in types.isReferenced
This commit is contained in:
@@ -231,7 +231,7 @@ t.isReferenced = function (node, parent) {
|
||||
if (_.contains(parent.params, node)) return false;
|
||||
|
||||
// we're a rest parameter
|
||||
if (_.contains(parent.params, node)) return false;
|
||||
if (parent.rest === node) return false;
|
||||
}
|
||||
|
||||
if (t.isMethodDefinition(parent) && parent.key === node && !parent.computed) {
|
||||
|
||||
Reference in New Issue
Block a user