We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2cd7e6 commit 8717f7bCopy full SHA for 8717f7b
javascript/ql/src/semmle/javascript/Arrays.qll
@@ -256,7 +256,9 @@ private module ArrayDataFlow {
256
exists(int i |
257
element = this.getElement(i) and
258
obj = this and
259
- prop = arrayElement(i)
+ if this = any(PromiseAllCreation c).getArrayNode()
260
+ then prop = arrayElement(i)
261
+ else prop = arrayElement()
262
)
263
}
264
0 commit comments