JS: Add test

This commit is contained in:
Asger F
2019-06-25 14:15:06 +01:00
parent 71100bb68a
commit aa4d28028e
2 changed files with 7 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,6 @@
async function test() {
let promisedTaint = source();
(await promisedTaint).map(x => {
sink(x); // NOT OK
});
}