mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
Added test case for Array.prototype.toSorted, which is currently not flagged as a taint sink.
This commit is contained in:
@@ -59,4 +59,8 @@ function test() {
|
||||
tagged`foo ${"safe"} bar ${x} baz`;
|
||||
|
||||
sink(x.reverse()); // NOT OK
|
||||
|
||||
sink(x.toSorted()) // NOT OK
|
||||
const xSorted = x.toSorted();
|
||||
sink(xSorted) // NOT OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user