We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a69cf commit b025fc6Copy full SHA for b025fc6
javascript/ql/test/library-tests/Arrays/arrays.js
@@ -109,4 +109,12 @@
109
sink(arr8_spread.pop()); // NOT OK
110
111
sink(arr.findLast(someCallback)); // NOT OK
112
+
113
114
+ const myList = [source()];
115
+ const element = myList.findLast((item) => sink(item)); // NOT OK - caught by both taint and dataflow tracking.
116
+ sink(element); // NOT OK
117
118
+ const mySecondList = source();
119
+ const elementSecond = mySecondList.findLast((item) => sink(item)); // NOT OK - only caught by taint-tracking.
120
});
0 commit comments