diff options
Diffstat (limited to 'lib/compress.js')
-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 7d20a4ea..944db1d2 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1168,12 +1168,12 @@ merge(Compressor.prototype, { return make_node(AST_EmptyStatement, node); } if (def.length == 0) { - return side_effects; + return in_list ? MAP.splice(side_effects.body) : side_effects; } node.definitions = def; if (side_effects) { side_effects.body.unshift(node); - node = side_effects; + return in_list ? MAP.splice(side_effects.body) : side_effects; } return node; } |