Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a72f795 commit 623dbdaCopy full SHA for 623dbda
1 file changed
javascript/ql/lib/semmle/javascript/dataflow/internal/DataFlowPrivate.qll
@@ -287,7 +287,11 @@ abstract class LibraryCallable extends string {
287
}
288
289
private predicate isParameterNodeImpl(Node p, DataFlowCallable c, ParameterPosition pos) {
290
- p = c.asSourceCallable().(Function).getParameter(pos.asPositional()).flow()
+ exists(Parameter parameter |
291
+ parameter = c.asSourceCallable().(Function).getParameter(pos.asPositional()) and
292
+ not parameter.isRestParameter() and
293
+ p = TValueNode(parameter)
294
+ )
295
or
296
pos.isThis() and p = TThisNode(c.asSourceCallable().(Function))
297
0 commit comments