JS: Quantify of ValueProperty instead of Property

This commit is contained in:
Asger F
2019-07-16 16:27:11 +01:00
parent 4e77a368c3
commit 1c2d874c55

View File

@@ -224,7 +224,7 @@ class ClassExpr extends @classexpr, ClassDefinition, Expr {
(
exists(VarDef vd | this = vd.getSource() | result = vd.getTarget().(VarRef).getName())
or
exists(Property p |
exists(ValueProperty p |
this = p.getInit() and
result = p.getName()
)