Merge pull request #3325 from erik-krogh/MoreEventClasses

Approved by asgerf
This commit is contained in:
semmle-qlci
2020-04-24 09:02:27 +01:00
committed by GitHub
3 changed files with 27 additions and 0 deletions

View File

@@ -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)
)
}
}
}