File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
javascript/ql/test/library-tests/Promises Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 22 var source = "source" ;
33
44 Promise . all ( [ source , "clean" ] ) . then ( ( arr ) => {
5- sink ( arr ) ; // OK
5+ sink ( arr ) ; // NOT OK - implicit read of array element
66 sink ( arr [ 0 ] ) ; // NOT OK
77 sink ( arr [ 1 ] ) ; // OK
88 } )
Original file line number Diff line number Diff line change 274274| flow.js:136:15:136:22 | "source" | flow.js:142:7:142:19 | await async() |
275275| flow.js:136:15:136:22 | "source" | flow.js:155:9:155:9 | e |
276276exclusiveTaintFlow
277+ | flow2.js:2:15:2:22 | "source" | flow2.js:5:8:5:10 | arr |
277278| flow.js:136:15:136:22 | "source" | flow.js:141:7:141:13 | async() |
278279| flow.js:160:15:160:22 | "source" | flow.js:164:39:164:39 | x |
279280| flow.js:160:15:160:22 | "source" | flow.js:167:7:167:9 | foo |
@@ -466,3 +467,4 @@ typetrack
466467valueFlowDifference
467468| flow2.js:2:15:2:22 | "source" | flow2.js:20:7:20:14 | tainted3 | only flow with NEW data flow library |
468469taintFlowDifference
470+ | flow2.js:2:15:2:22 | "source" | flow2.js:5:8:5:10 | arr | only flow with NEW data flow library |
You can’t perform that action at this time.
0 commit comments