pull/4000/head
daszgfz 6 years ago
parent f6060ed0dd
commit 91de025285

@ -796,7 +796,7 @@ export default class Component {
scope = map.get(node);
}
if (node.type === 'VariableDeclarator' && node.id.type === 'Identifier' && node.init.type === 'Identifier') {
if (node.type === 'VariableDeclarator' && node.id !== null && node.id.type === 'Identifier' && node.init !== null && node.init.type === 'Identifier') {
const variable = component.var_lookup.get(node.init.name);
variable.aliased = true;
}

Loading…
Cancel
Save