Skip to content

Commit 845020d

Browse files
committed
change getReceiver to getAMethodCall
1 parent 2c0bae4 commit 845020d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/semmle/javascript/Collections.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)