Skip to content

Commit

Permalink
fix: array index overflow (browserslist#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt authored and zhouyu9527 committed Jul 4, 2022
1 parent 77f47d3 commit 398ce14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -665,7 +665,7 @@ function coverQuery(context, coverage, statMode) {
var coveraged = 0
var result = []
var version
for (var i = 0; i <= versions.length; i++) {
for (var i = 0; i < versions.length; i++) {
version = versions[i]
if (usage[version] === 0) break
coveraged += usage[version]
Expand Down

0 comments on commit 398ce14

Please sign in to comment.