optimize top-level variables as well
This commit is contained in:
parent
75f3ed202c
commit
8c3697c504
|
|
@ -1108,7 +1108,7 @@ merge(Compressor.prototype, {
|
|||
this._evaluating = true;
|
||||
try {
|
||||
var d = this.definition();
|
||||
if (d && (d.constant || compressor.option("reduce_vars") && !d.global && !d.modified) && d.init) {
|
||||
if (d && (d.constant || compressor.option("reduce_vars") && !d.modified) && d.init) {
|
||||
return ev(d.init, compressor);
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user