mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
JS: Add: Test case for Array.protype.with taint step
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user