make id optional in t.getIds
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user