don't consider uncomputed object method property identifier to be a reference - fixes #2650
This commit is contained in:
@@ -116,6 +116,7 @@ export function isReferenced(node: Object, parent: Object): boolean {
|
||||
|
||||
// yes: class { [NODE](){} }
|
||||
case "ClassMethod":
|
||||
case "ObjectMethod":
|
||||
return parent.key === node && parent.computed;
|
||||
|
||||
// no: NODE: for (;;) {}
|
||||
|
||||
Reference in New Issue
Block a user