mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: Fix: Ensure toSpliced is flagged by taint tracking in test suite (ed44358143)
This commit is contained in:
@@ -42,11 +42,11 @@ function test(x, y) {
|
||||
let k = [];
|
||||
let kSpliced = k.toSpliced(x, y, source());
|
||||
sink(k); // OK
|
||||
sink(kSpliced); // NOT OK -- This should be caught, but it is not
|
||||
sink(kSpliced); // NOT OK
|
||||
|
||||
let l = [];
|
||||
l = l.toSpliced(x, y, source());
|
||||
sink(l); // NOT OK -- This should be caught, but it is not
|
||||
sink(l); // NOT OK
|
||||
|
||||
let m = [];
|
||||
m = m.toSpliced(q, source(), y);
|
||||
|
||||
Reference in New Issue
Block a user