Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c19f78

Browse files
committed
replace forex with unique in DOM.qll
1 parent cea1049 commit 8c19f78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • javascript/ql/src/semmle/javascript

javascript/ql/src/semmle/javascript/DOM.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ module DOM {
344344
or
345345
exists(JQuery::MethodCall call | this = call and call.getMethodName() = "get" |
346346
call.getNumArgument() = 1 and
347-
forex(InferredType t | t = call.getArgument(0).analyze().getAType() | t = TTNumber())
347+
unique(InferredType t | t = call.getArgument(0).analyze().getAType()) = TTNumber()
348348
)
349349
or
350350
// A `this` node from a callback given to a `$().each(callback)` call.

0 commit comments

Comments
 (0)