extract_declarations_from_unreachable_code(compressor, stat, a);
} else {
a.push(stat);
- if (stat instanceof AST_Jump) {
- has_quit = true;
- }
+ if (aborts(stat)) has_quit = true;
}
return a;
}, []);
var n = this.body.length;
return n > 0 && aborts(this.body[n - 1]);
});
+ def(AST_If, function(){
+ return this.alternative && aborts(this.body) && aborts(this.alternative);
+ });
})(function(node, func){
node.DEFMETHOD("aborts", func);
});