JS: Add: Test case for Array.protype.with taint step

This commit is contained in:
Napalys
2024-11-15 10:27:44 +01:00
parent 631a3770ec
commit f04fd5cdcc

View File

@@ -68,4 +68,8 @@ function test() {
sink(x.toReversed()) // NOT OK
const xReversed = x.toReversed();
sink(xReversed) // NOT OK
sink(x.with()) // NOT OK -- Should be flagged as a taint sink, but it is not
const xWith = x.with();
sink(xWith) // NOT OK -- Should be flagged as a taint sink, but it is not
}