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

Skip to content

Commit 5d6c6b4

Browse files
committed
JS: ArrayCreationStep
1 parent 5bfd2ad commit 5d6c6b4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

javascript/ql/src/semmle/javascript/Arrays.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ private module ArrayDataFlow {
234234
/**
235235
* A step for creating an array and storing the elements in the array.
236236
*/
237-
private class ArrayCreationStep extends DataFlow::AdditionalFlowStep, DataFlow::ArrayCreationNode {
237+
private class ArrayCreationStep extends DataFlow::SharedFlowStep {
238238
override predicate storeStep(DataFlow::Node element, DataFlow::SourceNode obj, string prop) {
239-
exists(int i |
240-
element = this.getElement(i) and
241-
obj = this and
242-
if this = any(PromiseAllCreation c).getArrayNode()
239+
exists(DataFlow::ArrayCreationNode array, int i |
240+
element = array.getElement(i) and
241+
obj = array and
242+
if array = any(PromiseAllCreation c).getArrayNode()
243243
then prop = arrayElement(i)
244244
else prop = arrayElement()
245245
)

0 commit comments

Comments
 (0)