fix crash: Import statements don't abort

This commit is contained in:
Fábio Santos 2016-02-27 13:27:18 +00:00
parent 4d85e5ef20
commit 1f973a4b59

View File

@ -1025,6 +1025,7 @@ merge(Compressor.prototype, {
var n = this.body.length; var n = this.body.length;
return n > 0 && aborts(this.body[n - 1]); return n > 0 && aborts(this.body[n - 1]);
}; };
def(AST_Import, function(){ return null; });
def(AST_BlockStatement, block_aborts); def(AST_BlockStatement, block_aborts);
def(AST_SwitchBranch, block_aborts); def(AST_SwitchBranch, block_aborts);
def(AST_If, function(){ def(AST_If, function(){