Skip to content

Commit f3c5a8f

Browse files
authored
Merge pull request #171 from browserstack/windows_path_issues
Iterate and modify an array at the same time
2 parents 0564db2 + e5537a7 commit f3c5a8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ exports.config = function(config) {
6565
if (typeof(config['test_server']) === 'undefined') {
6666
this.test_path = config.test_path;
6767
if (Object.prototype.toString.call(this.test_path) === '[object Array]') {
68-
this.test_path.forEach(function(path) {
69-
path = formatPath(path);
68+
this.test_path.forEach(function(path, index, test_path_array) {
69+
test_path_array[index] = formatPath(path);
7070
});
7171

7272
} else {

0 commit comments

Comments
 (0)