Skip to content

Commit f04fd5c

Browse files
committed
JS: Add: Test case for Array.protype.with taint step
1 parent 631a377 commit f04fd5c

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ function test() {
6868
sink(x.toReversed()) // NOT OK
6969
const xReversed = x.toReversed();
7070
sink(xReversed) // NOT OK
71+
72+
sink(x.with()) // NOT OK -- Should be flagged as a taint sink, but it is not
73+
const xWith = x.with();
74+
sink(xWith) // NOT OK -- Should be flagged as a taint sink, but it is not
7175
}

0 commit comments

Comments
 (0)