From 5344b7dab897fe266db9524a99529d6b64e9386e Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Fri, 31 Jan 2014 10:44:13 +0200 Subject: Fix if_return dropping the alternative. Close #413 --- lib/compress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compress.js') diff --git a/lib/compress.js b/lib/compress.js index 7df66938..1b6bedd5 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -376,7 +376,7 @@ merge(Compressor.prototype, { stat = stat.clone(); stat.condition = stat.condition.negate(compressor); stat.body = make_node(AST_BlockStatement, stat, { - body: ret + body: as_statement_array(stat.alternative).concat(ret) }); stat.alternative = make_node(AST_BlockStatement, stat, { body: body -- cgit v1.2.3