JavaScript: Fix IllegalInvocation.

This fixes false positives that arise when a call such as `f.apply` can either be interpreted as a reflective invocation of `f`, or a normal call to method `apply` of `f`.
This commit is contained in:
Max Schaefer
2019-09-22 16:04:05 +01:00
parent 478095223e
commit 149ae5d7ab
5 changed files with 21 additions and 1 deletions

View File

@@ -45,4 +45,12 @@ new h() // NOT OK
C.call(); // NOT OK
C.apply(); // NOT OK
class E {
static call() {}
static apply() {}
}
E.call(); // OK
E.apply(); // OK
//semmle-extractor-options: --experimental