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++;
|
||||
|
||||
if (index === line.length && lineNum < (lines.length-1)) {
|
||||
lineNum++;
|
||||
line = lines[lineNum];
|
||||
do {
|
||||
lineNum++;
|
||||
line = lines[lineNum];
|
||||
} while (line.length === 0);
|
||||
DEBUG && debug(line); // jshint ignore:line
|
||||
index = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user