Skip to content

Commit aa4d280

Browse files
committed
JS: Add test
1 parent 71100bb commit aa4d280

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

javascript/ql/test/library-tests/TaintTracking/BasicTaintTracking.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ typeInferenceMismatch
88
| addexpr.js:4:10:4:17 | source() | addexpr.js:7:8:7:8 | x |
99
| addexpr.js:11:15:11:22 | source() | addexpr.js:21:8:21:12 | value |
1010
| advanced-callgraph.js:2:13:2:20 | source() | advanced-callgraph.js:6:22:6:22 | v |
11+
| array-callback.js:2:23:2:30 | source() | array-callback.js:4:10:4:10 | x |
1112
| booleanOps.js:2:11:2:18 | source() | booleanOps.js:4:8:4:8 | x |
1213
| booleanOps.js:2:11:2:18 | source() | booleanOps.js:13:10:13:10 | x |
1314
| booleanOps.js:2:11:2:18 | source() | booleanOps.js:19:10:19:10 | x |
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
async function test() {
2+
let promisedTaint = source();
3+
(await promisedTaint).map(x => {
4+
sink(x); // NOT OK
5+
});
6+
}

0 commit comments

Comments
 (0)