8000 iterate and modify an array at the same time · browserstack/browserstack-runner@e5537a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit e5537a7

Browse files
committed
iterate and modify an array at the same time
1 parent 0564db2 commit e5537a7

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)
0