mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Merge pull request #3325 from erik-krogh/MoreEventClasses
Approved by asgerf
This commit is contained in:
@@ -1196,6 +1196,14 @@ module ClassNode {
|
||||
getAPropertySource("prototype") = newCall and
|
||||
result = newCall.getCalleeNode()
|
||||
)
|
||||
or
|
||||
// util.inherits(C, D);
|
||||
exists(DataFlow::CallNode inheritsCall |
|
||||
inheritsCall = DataFlow::moduleMember("util", "inherits").getACall()
|
||||
|
|
||||
this = inheritsCall.getArgument(0).getALocalSource() and
|
||||
result = inheritsCall.getArgument(1)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user