From ac62cc0f7d8d85a91626d47c006cc70f1cfafe9e Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Mon, 1 May 2017 09:22:11 -0700 Subject: [PATCH] fix(middleware): change to use vanilla for loop - Change use of for..in to plain for loop due to issues where array prototype is modified Fixes #2671 --- lib/middleware/karma.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleware/karma.js b/lib/middleware/karma.js index 831668324..04dd47a3f 100644 --- a/lib/middleware/karma.js +++ b/lib/middleware/karma.js @@ -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)