Skip to content

Commit 73071bd

Browse files
committed
JS: Change getAParameter to not return the receiver
1 parent 6bef5a7 commit 73071bd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ module API {
187187
}
188188

189189
/**
190-
* Gets a node representing a parameter or the receiver of the function represented by this
191-
* node.
190+
* Gets a node representing a parameter of the function represented by this node.
192191
*
193192
* This predicate may result in a mix of parameters from different call sites in cases where
194193
* there are multiple invocations of this API component.
@@ -198,8 +197,6 @@ module API {
198197
Node getAParameter() {
199198
Stages::ApiStage::ref() and
200199
result = this.getParameter(_)
201-
or
202-
result = this.getReceiver()
203200
}
204201

205202
/**

0 commit comments

Comments
 (0)