Update javascript/ql/lib/semmle/javascript/dataflow/internal/CallGraphs.qll

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
Asger F
2024-03-08 13:01:38 +01:00
committed by GitHub
parent 81b04863b2
commit ac4601cb8f

View File

@@ -250,7 +250,7 @@ module CallGraph {
result = node.(DataFlow::ObjectLiteralNode).getPropertySetter(_) result = node.(DataFlow::ObjectLiteralNode).getPropertySetter(_)
) and ) and
not node.getTopLevel().isExterns() and not node.getTopLevel().isExterns() and
// Do not track instance methods on classes // Ignore writes to `this` inside a constructor, since this is already handled by instance method tracking
not exists(DataFlow::ClassNode cls | not exists(DataFlow::ClassNode cls |
node = cls.getConstructor().getReceiver() node = cls.getConstructor().getReceiver()
or or