JS: Mark unused parameter nodes as incomplete

This commit is contained in:
Asger F
2019-05-21 13:47:57 +01:00
parent 69dbbcf1c8
commit de2f323172
2 changed files with 2 additions and 2 deletions

View File

@@ -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"
}
/**

View File

@@ -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 |