Skip to content

Commit

Permalink
handle unknown nodes in extract_identifiers (#2510) (#2514)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Apr 23, 2019
1 parent e7885f2 commit 51f2a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/utils/scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function extract_names(param: Node) {

export function extract_identifiers(param: Node) {
const nodes: Node[] = [];
extractors[param.type](nodes, param);
extractors[param.type] && extractors[param.type](nodes, param);
return nodes;
}

Expand Down

0 comments on commit 51f2a3b

Please sign in to comment.