fix corner case in reduce_vars (#3124)
This commit is contained in:
@@ -383,7 +383,15 @@ merge(Compressor.prototype, {
|
||||
}
|
||||
|
||||
function mark_defun(tw, def) {
|
||||
if (def.id in tw.defun_ids) return def.fixed;
|
||||
if (def.id in tw.defun_ids) {
|
||||
var marker = tw.defun_ids[def.id];
|
||||
if (!marker) return;
|
||||
if (marker !== tw.safe_ids) {
|
||||
tw.defun_ids[def.id] = undefined;
|
||||
return;
|
||||
}
|
||||
return def.fixed;
|
||||
}
|
||||
if (!tw.in_loop) {
|
||||
tw.defun_ids[def.id] = tw.safe_ids;
|
||||
return def.fixed;
|
||||
|
||||
Reference in New Issue
Block a user