Fix loop-protect for empty lines in do-while loops
This commit is contained in:
committed by
Hector Garcia
parent
dee0f3f5df
commit
f84bb9a94e
@ -358,8 +358,10 @@ if (typeof DEBUG === 'undefined') { DEBUG = true; }
|
|||||||
index++;
|
index++;
|
||||||
|
|
||||||
if (index === line.length && lineNum < (lines.length-1)) {
|
if (index === line.length && lineNum < (lines.length-1)) {
|
||||||
|
do {
|
||||||
lineNum++;
|
lineNum++;
|
||||||
line = lines[lineNum];
|
line = lines[lineNum];
|
||||||
|
} while (line.length === 0);
|
||||||
DEBUG && debug(line); // jshint ignore:line
|
DEBUG && debug(line); // jshint ignore:line
|
||||||
index = 0;
|
index = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user