mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
JS: Mark unused parameter nodes as incomplete
This commit is contained in:
@@ -1280,6 +1280,8 @@ module DataFlow {
|
||||
exists(PropertyPattern p | nd = TPropNode(p)) and cause = "heap"
|
||||
or
|
||||
nd instanceof TElementPatternNode and cause = "heap"
|
||||
or
|
||||
nd instanceof UnusedParameterNode and cause = "call"
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,8 +3,6 @@ typeInferenceMismatch
|
||||
| addexpr.js:4:10:4:17 | source() | addexpr.js:6:3:6:14 | x |
|
||||
| addexpr.js:11:15:11:22 | source() | addexpr.js:17:5:17:18 | value |
|
||||
| addexpr.js:11:15:11:22 | source() | addexpr.js:19:3:19:14 | value |
|
||||
| partialCalls.js:4:17:4:24 | source() | partialCalls.js:6:23:6:23 | y |
|
||||
| partialCalls.js:4:17:4:24 | source() | partialCalls.js:9:20:9:20 | x |
|
||||
#select
|
||||
| access-path-sanitizer.js:2:18:2:25 | source() | access-path-sanitizer.js:4:8:4:12 | obj.x |
|
||||
| addexpr.js:4:10:4:17 | source() | addexpr.js:7:8:7:8 | x |
|
||||
|
||||
Reference in New Issue
Block a user