mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +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. */
|
||||
pragma[nomagic]
|
||||
predicate isDOMProperty(string p) {
|
||||
exists (ExternalMemberDecl emd | emd.getName() = p |
|
||||
isDOMRootType(emd.getDeclaringType().getASupertype*())
|
||||
|
||||
Reference in New Issue
Block a user