mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Merge pull request #650 from xiemaisi/js/nomagic-isDOMProperty
Approved by asger-semmle
This commit is contained in:
@@ -12,6 +12,7 @@ predicate isDOMRootType(ExternalType et) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Holds if `p` is declared as a property of a DOM class or interface. */
|
/** Holds if `p` is declared as a property of a DOM class or interface. */
|
||||||
|
pragma[nomagic]
|
||||||
predicate isDOMProperty(string p) {
|
predicate isDOMProperty(string p) {
|
||||||
exists (ExternalMemberDecl emd | emd.getName() = p |
|
exists (ExternalMemberDecl emd | emd.getName() = p |
|
||||||
isDOMRootType(emd.getDeclaringType().getASupertype*())
|
isDOMRootType(emd.getDeclaringType().getASupertype*())
|
||||||
|
|||||||
Reference in New Issue
Block a user