mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
restrict precise array elements to Promise.all()
This commit is contained in:
@@ -256,7 +256,9 @@ private module ArrayDataFlow {
|
||||
exists(int i |
|
||||
element = this.getElement(i) and
|
||||
obj = this and
|
||||
prop = arrayElement(i)
|
||||
if this = any(PromiseAllCreation c).getArrayNode()
|
||||
then prop = arrayElement(i)
|
||||
else prop = arrayElement()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user