mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
add flow step for Array.prototype.at
This commit is contained in:
@@ -17,6 +17,7 @@ typeInferenceMismatch
|
||||
| arrays.js:2:15:2:22 | source() | arrays.js:11:10:11:28 | union(["bla"], foo) |
|
||||
| arrays.js:2:15:2:22 | source() | arrays.js:14:10:14:18 | flat(foo) |
|
||||
| arrays.js:2:15:2:22 | source() | arrays.js:19:10:19:12 | res |
|
||||
| arrays.js:2:15:2:22 | source() | arrays.js:21:10:21:19 | foo.at(-1) |
|
||||
| booleanOps.js:2:11:2:18 | source() | booleanOps.js:4:8:4:8 | x |
|
||||
| booleanOps.js:2:11:2:18 | source() | booleanOps.js:13:10:13:10 | x |
|
||||
| booleanOps.js:2:11:2:18 | source() | booleanOps.js:19:10:19:10 | x |
|
||||
|
||||
@@ -17,4 +17,6 @@ function test() {
|
||||
return prev + '<b>' + current + '</b>';
|
||||
}, '');
|
||||
sink(res); // NOT OK
|
||||
|
||||
sink(foo.at(-1)); // NOT OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user