JS: address review comments

This commit is contained in:
Esben Sparre Andreasen
2018-11-21 09:18:52 +01:00
parent 82fc8ae32a
commit 01ad9ed8bc
3 changed files with 6 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ where maybeMissingThis(call, intendedTarget, gv)
intendedTarget.getBody() = self and
call.getEnclosingFunction() = self and
call.flow().(DataFlow::CallNode).getNumArgument() > self.getNumParameter() and
not self.hasRestParameter() and
not self.usesArgumentsObject()
)
)