File tree Expand file tree Collapse file tree 4 files changed +385
-129
lines changed
javascript/ql/test/library-tests/Arrays Expand file tree Collapse file tree 4 files changed +385
-129
lines changed Original file line number Diff line number Diff line change 26
26
| arrays.js:53:4:53:11 | "source" | arrays.js:54:10:54:18 | ary.pop() |
27
27
| arrays.js:99:31:99:38 | "source" | arrays.js:100:8:100:17 | arr8.pop() |
28
28
| arrays.js:103:55:103:62 | "source" | arrays.js:105:8:105:25 | arr8_variant.pop() |
29
+ | arrays.js:114:19:114:26 | "source" | arrays.js:116:10:116:16 | element |
30
+ | arrays.js:120:19:120:26 | "source" | arrays.js:122:10:122:16 | element |
Original file line number Diff line number Diff line change 30
30
| arrays.js:96:9:96:16 | "source" | arrays.js:96:8:96:36 | ["sourc ... => !!x) |
31
31
| arrays.js:99:31:99:38 | "source" | arrays.js:100:8:100:17 | arr8.pop() |
32
32
| arrays.js:103:55:103:62 | "source" | arrays.js:105:8:105:25 | arr8_variant.pop() |
33
+ | arrays.js:114:19:114:26 | "source" | arrays.js:116:10:116:16 | element |
34
+ | arrays.js:120:19:120:26 | "source" | arrays.js:122:10:122:16 | element |
Original file line number Diff line number Diff line change 109
109
sink ( arr8_spread . pop ( ) ) ; // NOT OK
110
110
111
111
sink ( arr . findLast ( someCallback ) ) ; // NOT OK
112
+
113
+ { // Test for findLast function
114
+ const list = [ "source" ] ;
115
+ const element = list . findLast ( ( item ) => sink ( item ) ) ; // NOT OK -- Not caught, currently missing dataflow tracking.
116
+ sink ( element ) ; // NOT OK
117
+ }
118
+
119
+ { // Test for find function
120
+ const list = [ "source" ] ;
121
+ const element = list . find ( ( item ) => sink ( item ) ) ; // NOT OK -- Not caught, currently missing dataflow tracking.
122
+ sink ( element ) ; // NOT OK
123
+ }
124
+
125
+ { // Test for findLastIndex function
126
+ const list = [ "source" ] ;
127
+ const element = list . findLastIndex ( ( item ) => sink ( item ) ) ; // NOT OK -- Not caught, currently missing dataflow tracking.
128
+ sink ( element ) ; // OK
129
+ }
112
130
} ) ;
You can’t perform that action at this time.
0 commit comments