Skip to content

Commit b2fcea4

Browse files
committed
JS: Allow PropAccess when guessing name
1 parent 1c2d874 commit b2fcea4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

javascript/ql/src/semmle/javascript/Classes.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class ClassExpr extends @classexpr, ClassDefinition, Expr {
229229
result = p.getName()
230230
)
231231
or
232-
exists(AssignExpr assign, DotExpr prop |
232+
exists(AssignExpr assign, PropAccess prop |
233233
this = assign.getRhs().getUnderlyingValue() and
234234
prop = assign.getLhs() and
235235
result = prop.getPropertyName()

javascript/ql/src/semmle/javascript/Functions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Function extends @function, Parameterized, TypeParameterized, StmtContaine
6767
result = p.getName()
6868
)
6969
or
70-
exists(AssignExpr assign, DotExpr prop |
70+
exists(AssignExpr assign, PropAccess prop |
7171
this = assign.getRhs().getUnderlyingValue() and
7272
prop = assign.getLhs() and
7373
result = prop.getPropertyName()

0 commit comments

Comments
 (0)