Skip to content

Commit

Permalink
fix(middleware): change to use vanilla for loop
Browse files Browse the repository at this point in the history
- Change use of for..in to plain for loop due to issues where array prototype is modified

Fixes #2671
  • Loading branch information
wesleycho committed May 1, 2017
1 parent 14b6dfd commit ac62cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/karma.js
Expand Up @@ -174,7 +174,7 @@ var createKarmaMiddleware = function (

var scriptTags = []
var scriptUrls = []
for (var i in files.included) {
for (var i = 0; i < files.included.length; i++) {
var file = files.included[i]
var filePath = file.path
var fileExt = path.extname(filePath)
Expand Down

0 comments on commit ac62cc0

Please sign in to comment.