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