diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index a34272ca..6d398de2 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -648,7 +648,7 @@ merge(Compressor.prototype, { tw.in_loop = this; push(tw); this.body.walk(tw); - if (has_break_or_continue(this)) { + if (has_break_or_continue(this, tw.parent())) { pop(tw); push(tw); } @@ -665,7 +665,7 @@ merge(Compressor.prototype, { if (this.condition) this.condition.walk(tw); this.body.walk(tw); if (this.step) { - if (has_break_or_continue(this)) { + if (has_break_or_continue(this, tw.parent())) { pop(tw); push(tw); } |