We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ArrayIndexingStep
1 parent 6213c20 commit b4e6f92Copy full SHA for b4e6f92
javascript/ql/src/semmle/javascript/Arrays.qll
@@ -156,9 +156,8 @@ private module ArrayDataFlow {
156
157
ArrayIndexingStep() {
158
read = this and
159
- forex(InferredType type | type = read.getPropertyNameExpr().flow().analyze().getAType() |
160
- type = TTNumber()
161
- ) and
+ TTNumber() =
+ unique(InferredType type | type = read.getPropertyNameExpr().flow().analyze().getAType()) and
162
exists(VarAccess i, ExprOrVarDecl init |
163
i = read.getPropertyNameExpr() and init = any(ForStmt f).getInit()
164
|
0 commit comments