@@ -3016,7 +3016,7 @@ merge(Compressor.prototype, {
|
||||
}
|
||||
|
||||
function extract_declarations_from_unreachable_code(compressor, stat, target) {
|
||||
if (!(stat instanceof AST_Definitions || stat instanceof AST_Defun)) {
|
||||
if (!(stat instanceof AST_Definitions || is_defun(stat))) {
|
||||
AST_Node.warn("Dropping unreachable code [{file}:{line},{col}]", stat.start);
|
||||
}
|
||||
var block;
|
||||
@@ -3032,7 +3032,7 @@ merge(Compressor.prototype, {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (node instanceof AST_Defun) {
|
||||
if (is_defun(node)) {
|
||||
push(node);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user