Skip to content

Commit 69857e3

Browse files
committed
JS: Add a missing needsDefNode restriction
Previously this was implied by MkClassInstance but that's no longer the case.
1 parent 7711c28 commit 69857e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,7 @@ module API {
15321532
succ = MkDef(rhs)
15331533
or
15341534
exists(DataFlow::ClassNode cls |
1535+
needsDefNode(cls) and
15351536
cls.getAnInstanceReference().flowsTo(rhs) and
15361537
succ = MkClassInstance(cls)
15371538
)

0 commit comments

Comments
 (0)