JS: fix most ql/missing-parameter-qldoc issues

This commit is contained in:
Erik Krogh Kristensen
2021-12-19 23:01:53 +01:00
parent ecd3aceb07
commit efba220b45
25 changed files with 55 additions and 55 deletions

View File

@@ -16,14 +16,14 @@ import javascript
/**
* Holds if `assign` assigns the value of `nd` to `exportsVar`, which is an `exports` variable
*/
predicate exportsAssign(Assignment assgn, Variable exportsVar, DataFlow::Node nd) {
predicate exportsAssign(Assignment assign, Variable exportsVar, DataFlow::Node nd) {
exists(NodeModule m |
exportsVar = m.getScope().getVariable("exports") and
assgn.getLhs() = exportsVar.getAnAccess() and
nd = assgn.getRhs().flow()
assign.getLhs() = exportsVar.getAnAccess() and
nd = assign.getRhs().flow()
)
or
exportsAssign(assgn, exportsVar, nd.getASuccessor())
exportsAssign(assign, exportsVar, nd.getASuccessor())
}
/**