mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Update javascript/ql/lib/semmle/javascript/dataflow/internal/CallGraphs.qll
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user