Skip to content

Commit 3146007

Browse files
committed
More cases in toDataFlowNodeIn
1 parent d4ead64 commit 3146007

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

javascript/ql/lib/semmle/javascript/internal/NameResolution.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ module NameResolution {
3939
result = DataFlow::valueNode(this)
4040
or
4141
result = DataFlow::valueNode(this.(Variable).getAnAssignedExpr())
42+
or
43+
result = DataFlow::valueNode(any(ClassDefinition def | this = def.getVariable()))
44+
or
45+
result = DataFlow::valueNode(any(FunctionDeclStmt def | this = def.getVariable()))
4246
}
4347

4448
DataFlow::Node toDataFlowNodeOut() {

0 commit comments

Comments
 (0)