make id optional in t.getIds
This commit is contained in:
parent
71d87f5b97
commit
c967cded78
@ -117,7 +117,7 @@ t.getIds = function (node) {
|
||||
search = search.concat(id.declarations);
|
||||
} else if (t.isVariableDeclarator(id)) {
|
||||
search.push(id.id);
|
||||
} else {
|
||||
} else if (id) {
|
||||
throw new Error("unknown node " + id.type);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user