mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
JS: Add test
This commit is contained in:
@@ -8,6 +8,7 @@ typeInferenceMismatch
|
||||
| addexpr.js:4:10:4:17 | source() | addexpr.js:7:8:7:8 | x |
|
||||
| addexpr.js:11:15:11:22 | source() | addexpr.js:21:8:21:12 | value |
|
||||
| advanced-callgraph.js:2:13:2:20 | source() | advanced-callgraph.js:6:22:6:22 | v |
|
||||
| array-callback.js:2:23:2:30 | source() | array-callback.js:4:10:4:10 | x |
|
||||
| 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 |
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
async function test() {
|
||||
let promisedTaint = source();
|
||||
(await promisedTaint).map(x => {
|
||||
sink(x); // NOT OK
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user