replace forex with unique in DOM.qll

This commit is contained in:
Erik Krogh Kristensen
2021-02-24 17:59:38 +01:00
parent cea1049745
commit 8c19f7810d

View File

@@ -344,7 +344,7 @@ module DOM {
or
exists(JQuery::MethodCall call | this = call and call.getMethodName() = "get" |
call.getNumArgument() = 1 and
forex(InferredType t | t = call.getArgument(0).analyze().getAType() | t = TTNumber())
unique(InferredType t | t = call.getArgument(0).analyze().getAType()) = TTNumber()
)
or
// A `this` node from a callback given to a `$().each(callback)` call.