mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
add query for detecting ignored calls to Array.prototype.concat
This commit is contained in:
5
javascript/ql/src/Statements/examples/IgnoreConcat.js
Normal file
5
javascript/ql/src/Statements/examples/IgnoreConcat.js
Normal file
@@ -0,0 +1,5 @@
|
||||
var arr = [1,2,3];
|
||||
|
||||
function extend(others) {
|
||||
arr.concat(others);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
var arr = [1,2,3];
|
||||
|
||||
function extend(others) {
|
||||
arr = arr.concat(others);
|
||||
}
|
||||
Reference in New Issue
Block a user