Skip to content

Commit

Permalink
add TODO to handle multiple line while statement for do loop
Browse files Browse the repository at this point in the history
  • Loading branch information
YIXI ZHANG committed Dec 27, 2015
1 parent 990f363 commit 4ae2a21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/loop-protect.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ if (typeof DEBUG === 'undefined') { DEBUG = true; }

if (findwhile && line.indexOf('while') !== -1) {
DEBUG && debug('- exit as we found `while`: ' + line); // jshint ignore:line
// TODO: handle while statement in multiple lines
line += '}';
recompiled.push(line);
ignore[lineNum] = true;
Expand Down

0 comments on commit 4ae2a21

Please sign in to comment.