mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Add a missing needsDefNode restriction
Previously this was implied by MkClassInstance but that's no longer the case.
This commit is contained in:
@@ -1532,6 +1532,7 @@ module API {
|
||||
succ = MkDef(rhs)
|
||||
or
|
||||
exists(DataFlow::ClassNode cls |
|
||||
needsDefNode(cls) and
|
||||
cls.getAnInstanceReference().flowsTo(rhs) and
|
||||
succ = MkClassInstance(cls)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user