mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
update tests
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
| tst.js:3:1:3:19 | arr.concat([1,2,3]) | Return value from call to concat ignored. |
|
||||
| tst.js:5:1:5:15 | arr.concat(arr) | Return value from call to concat ignored. |
|
||||
| tst.js:3:1:3:19 | arr.concat([1,2,3]) | Result from call to concat ignored. |
|
||||
| tst.js:5:1:5:15 | arr.concat(arr) | Result from call to concat ignored. |
|
||||
|
||||
@@ -1 +1 @@
|
||||
Statements/IgnoreConcatReturn.ql
|
||||
Statements/IgnoreArrayResult.ql
|
||||
@@ -6,8 +6,4 @@ arr.concat(arr); // NOT OK!
|
||||
|
||||
console.log(arr.concat([1,2,3]));
|
||||
|
||||
arr.concat(null);
|
||||
arr.concat();
|
||||
arr.concat([]);
|
||||
|
||||
({concat: Array.prototype.concat}.concat(arr));
|
||||
Reference in New Issue
Block a user