don't consider uncomputed object method property identifier to be a reference - fixes #2650
This commit is contained in:
parent
b5e0ab97d1
commit
b81039e3e5
@ -13,6 +13,11 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
|
|||||||
|
|
||||||
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
|
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
|
||||||
|
|
||||||
|
## 6.0.13
|
||||||
|
|
||||||
|
* **Bug Fix**
|
||||||
|
* Don't consider uncomputed object method property identifier to be a reference.
|
||||||
|
|
||||||
## 6.0.12
|
## 6.0.12
|
||||||
|
|
||||||
* **Bug Fix**
|
* **Bug Fix**
|
||||||
|
|||||||
@ -116,6 +116,7 @@ export function isReferenced(node: Object, parent: Object): boolean {
|
|||||||
|
|
||||||
// yes: class { [NODE](){} }
|
// yes: class { [NODE](){} }
|
||||||
case "ClassMethod":
|
case "ClassMethod":
|
||||||
|
case "ObjectMethod":
|
||||||
return parent.key === node && parent.computed;
|
return parent.key === node && parent.computed;
|
||||||
|
|
||||||
// no: NODE: for (;;) {}
|
// no: NODE: for (;;) {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user