mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
JS: Fix bug in MkClassInstance use-nodes
This only worked when the RHS was a SourceNode, which is not generally the case
This commit is contained in:
@@ -1319,7 +1319,7 @@ module API {
|
||||
succ = MkDef(rhs)
|
||||
or
|
||||
exists(DataFlow::ClassNode cls |
|
||||
cls.getAnInstanceReference() = rhs and
|
||||
cls.getAnInstanceReference().flowsTo(rhs) and
|
||||
succ = MkClassInstance(cls)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user