mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user