unnecessary

pull/11540/head
Simon Holthausen 2 years ago
parent b6575cc29d
commit 50d350f20a

@ -1255,10 +1255,7 @@ const common_visitors = {
binding.kind === 'derived') &&
// We're only concerned with reads here
parent.type !== 'AssignmentExpression' &&
parent.type !== 'UpdateExpression' &&
(parent.type !== 'MemberExpression' ||
(context.path.at(-2)?.type !== 'AssignmentExpression' &&
context.path.at(-2)?.type !== 'UpdateExpression'))
parent.type !== 'UpdateExpression'
) {
w.state_referenced_locally(node);
}

Loading…
Cancel
Save