aborts(AST_If) returns the `if` node
authorMihai Bazon <mihai@bazon.net>
Tue, 6 Jan 2015 11:57:18 +0000 (13:57 +0200)
committerMihai Bazon <mihai@bazon.net>
Tue, 6 Jan 2015 12:01:35 +0000 (14:01 +0200)
commitd2d716483aa69927541a0a29f3c1ee3c7bba30b4
tree7c6c4d28e9bc75dab452462f5306354f67c57f5b
parentf16033aafdd7f88da6b53c58f86b8effd1fb2a3d
aborts(AST_If) returns the `if` node

Previously it returned the abort node from the alternative branch.  This is
not much use as it can be different from the one in the body
branch (i.e. return vs. throw) and can trick us into issues like #591.

Fix #591
lib/compress.js