Skip to content

Commit 4ae2a21

Browse files
author
YIXI ZHANG
committed
add TODO to handle multiple line while statement for do loop
1 parent 990f363 commit 4ae2a21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/loop-protect.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ if (typeof DEBUG === 'undefined') { DEBUG = true; }
390390

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

0 commit comments

Comments
 (0)