mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
7 lines
125 B
JavaScript
7 lines
125 B
JavaScript
function sum(xs) {
|
|
var res = 0;
|
|
for(var i=0; i<xs.length; ++i)
|
|
res += xs[0]; // BAD: should be xs[i]
|
|
return res;
|
|
}
|