don't consider uncomputed object method property identifier to be a reference - fixes #2650

This commit is contained in:
Sebastian McKenzie
2015-10-30 05:06:45 +00:00
parent b5e0ab97d1
commit b81039e3e5
2 changed files with 6 additions and 0 deletions

View File

@@ -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 (;;) {}