Skip to content

Commit e3c84ee

Browse files
committed
JS: Correctly recognize Array.isArray calls
1 parent 3184ddb commit e3c84ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/TypeConfusionThroughParameterTamperingQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private class TypeOfTestBarrier extends DataFlow::BarrierGuardNode, DataFlow::Va
5050
}
5151

5252
private class IsArrayBarrier extends DataFlow::BarrierGuardNode, DataFlow::CallNode {
53-
IsArrayBarrier() { this = DataFlow::globalVarRef("Array").getAMemberCall("isArray").getACall() }
53+
IsArrayBarrier() { this = DataFlow::globalVarRef("Array").getAMemberCall("isArray") }
5454

5555
override predicate blocks(boolean outcome, Expr e) {
5656
e = getArgument(0).asExpr() and

0 commit comments

Comments
 (0)