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 @@ -133,7 +133,7 @@ private module CollectionDataFlow {
133133 SetAdd ( ) { this .getMethodName ( ) = "add" }
134134
135135 override predicate store ( DataFlow:: Node element , DataFlow:: Node obj , PseudoProperty prop ) {
136- obj = this . getReceiver ( ) . getALocalSource ( ) and
136+ this = obj . ( DataFlow :: SourceNode ) . getAMethodCall ( ) and
137137 element = this .getArgument ( 0 ) and
138138 prop = setElement ( )
139139 }
@@ -228,7 +228,7 @@ private module CollectionDataFlow {
228228 MapSet ( ) { this .getMethodName ( ) = "set" }
229229
230230 override predicate store ( DataFlow:: Node element , DataFlow:: Node obj , PseudoProperty prop ) {
231- obj = this . getReceiver ( ) . getALocalSource ( ) and
231+ this = obj . ( DataFlow :: SourceNode ) . getAMethodCall ( ) and
232232 element = this .getArgument ( 1 ) and
233233 prop = getAPseudoProperty ( )
234234 }
You can’t perform that action at this time.
0 commit comments