Avoid exception when instanceof is in anonymous function declaration.
This commit is contained in:
parent
9b0f509433
commit
f11cce1d7c
@ -9,6 +9,7 @@ export default function({ types: t }) {
|
||||
return (
|
||||
(path.isVariableDeclarator() && path.node.id === helper) ||
|
||||
(path.isFunctionDeclaration() &&
|
||||
path.node.id &&
|
||||
path.node.id.name === helper.name)
|
||||
);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user