File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ private module CollectionDataFlow {
133
133
SetAdd ( ) { this .getMethodName ( ) = "add" }
134
134
135
135
override predicate store ( DataFlow:: Node element , DataFlow:: Node obj , PseudoProperty prop ) {
136
- obj = this . getReceiver ( ) . getALocalSource ( ) and
136
+ this = obj . ( DataFlow :: SourceNode ) . getAMethodCall ( ) and
137
137
element = this .getArgument ( 0 ) and
138
138
prop = setElement ( )
139
139
}
@@ -228,7 +228,7 @@ private module CollectionDataFlow {
228
228
MapSet ( ) { this .getMethodName ( ) = "set" }
229
229
230
230
override predicate store ( DataFlow:: Node element , DataFlow:: Node obj , PseudoProperty prop ) {
231
- obj = this . getReceiver ( ) . getALocalSource ( ) and
231
+ this = obj . ( DataFlow :: SourceNode ) . getAMethodCall ( ) and
232
232
element = this .getArgument ( 1 ) and
233
233
prop = getAPseudoProperty ( )
234
234
}
You can’t perform that action at this time.
0 commit comments