@@ -580,9 +580,12 @@ merge(Compressor.prototype, {
|
||||
}
|
||||
|
||||
function safe_to_assign(tw, def, declare) {
|
||||
if (!(declare || all(def.orig, function(sym) {
|
||||
return !(sym instanceof AST_SymbolConst);
|
||||
}))) return false;
|
||||
if (!declare) {
|
||||
if (is_funarg(def) && def.scope.uses_arguments && !tw.has_directive("use strict")) return false;
|
||||
if (!all(def.orig, function(sym) {
|
||||
return !(sym instanceof AST_SymbolConst);
|
||||
})) return false;
|
||||
}
|
||||
if (def.fixed === undefined) return declare || all(def.orig, function(sym) {
|
||||
return !(sym instanceof AST_SymbolLet);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user