Skip to content

Commit 3e196f8

Browse files
committed
JS: Update Promises/flow2 test
1 parent aa8bd33 commit 3e196f8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

javascript/ql/test/library-tests/Promises/flow2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
})

javascript/ql/test/library-tests/Promises/tests.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ flow
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 |
276276
exclusiveTaintFlow
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
466467
valueFlowDifference
467468
| flow2.js:2:15:2:22 | "source" | flow2.js:20:7:20:14 | tainted3 | only flow with NEW data flow library |
468469
taintFlowDifference
470+
| flow2.js:2:15:2:22 | "source" | flow2.js:5:8:5:10 | arr | only flow with NEW data flow library |

0 commit comments

Comments
 (0)