diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index f49dd60e..0dfe2a3c 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -348,6 +348,16 @@ merge(Compressor.prototype, { pop(); return true; } + if (node instanceof AST_Conditional) { + node.condition.walk(tw); + push(); + node.consequent.walk(tw); + pop(); + push(); + node.alternative.walk(tw); + pop(); + return true; + } if (node instanceof AST_If) { node.condition.walk(tw); push(); |