fix crash: Import statements don't abort
This commit is contained in:
committed by
Richard van Velzen
parent
0bc4f6edb4
commit
accca2445f
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user