forbid block-scoped AST_Defun in strict mode (#2718)
This commit is contained in:
@@ -1746,7 +1746,7 @@ merge(Compressor.prototype, {
|
||||
target.push(node);
|
||||
return true;
|
||||
}
|
||||
if (node instanceof AST_Defun && (node === stat || !compressor.has_directive("use strict"))) {
|
||||
if (node instanceof AST_Defun) {
|
||||
target.push(node);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user