We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf90430 commit 8512cb4Copy full SHA for 8512cb4
javascript/ql/test/library-tests/TaintTracking/array-mutation.js
@@ -67,4 +67,11 @@ function test(x, y) {
67
let q = [];
68
q.splice(x, y, ...source());
69
sink(q); // NOT OK
70
+
71
+ let r = [];
72
+ let rSpliced = r.toSpliced(x, y, ...source());
73
+ sink(rSpliced); // NOT OK -- This should flagged but it is not
74
+ sink(r); // OK
75
+ r = r.toSpliced(x, y, ...source());
76
+ sink(r); // NOT OK -- This should flagged but it is not
77
}
0 commit comments