Skip to content

Commit 3786ad4

Browse files
committed
JS: Add: test case for Map.groupBy
1 parent d178d84 commit 3786ad4

File tree

1 file changed

+3
-0
lines changed
  • javascript/ql/test/library-tests/TaintTracking

1 file changed

+3
-0
lines changed

javascript/ql/test/library-tests/TaintTracking/tst.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,7 @@ function test() {
6868
sink(x.toReversed()) // NOT OK
6969
const xReversed = x.toReversed();
7070
sink(xReversed) // NOT OK
71+
72+
sink(Map.groupBy(x, z => z)); // NOT OK -- This should be marked via taint step, but it is not.
73+
sink(Custom.groupBy(x, z => z)); // OK
7174
}

0 commit comments

Comments
 (0)