Skip to content

Commit e3896fe

Browse files
committed
Merge pull request #4 from kemitchell/master
plug leak of counter variables in edit-script's compare()
2 parents 0e5fac9 + 43bbbf0 commit e3896fe

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

dist/diff.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ var compare = function(seq1, seq2, eq){
180180
var l = target.length,
181181
start, len, to,
182182
notEmpty = function(s){return s !== MARK_EMPTY;},
183-
script = [];
183+
script = [],
184+
i, j;
184185

185186
for(i = l - 1; i >= 0;){
186187
// join continuous diffs

dist/diff.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var paths = {
1717
// do test
1818
gulp.task('test', function(){
1919
return gulp.src(paths.tests, {read: false})
20-
.pipe(mocha());
20+
.pipe(mocha({ignoreLeaks: false}));
2121
});
2222

2323
// clean dist folder

lib/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ var compare = function(seq1, seq2, eq){
6464
var l = target.length,
6565
start, len, to,
6666
notEmpty = function(s){return s !== MARK_EMPTY;},
67-
script = [];
67+
script = [],
68+
i, j;
6869

6970
for(i = l - 1; i >= 0;){
7071
// join continuous diffs

0 commit comments

Comments
 (0)