File tree Expand file tree Collapse file tree
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments