update tests

This commit is contained in:
Erik Krogh Kristensen
2019-10-26 23:26:45 +02:00
parent 5b26d03f1c
commit da23898eba
3 changed files with 3 additions and 7 deletions

View File

@@ -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. |

View File

@@ -1 +1 @@
Statements/IgnoreConcatReturn.ql
Statements/IgnoreArrayResult.ql

View File

@@ -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));