@@ -399,6 +399,10 @@ merge(Compressor.prototype, {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
if (compressor.option("ie8")) scope.variables.each(function(def) {
|
||||||
|
var d = def.orig[0].definition();
|
||||||
|
if (d !== def) d.fixed = false;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function mark_defun(tw, def) {
|
function mark_defun(tw, def) {
|
||||||
|
|||||||
@@ -2460,3 +2460,32 @@ issue_3825: {
|
|||||||
}
|
}
|
||||||
expect_stdout: "undefined"
|
expect_stdout: "undefined"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_3889: {
|
||||||
|
options = {
|
||||||
|
evaluate: true,
|
||||||
|
ie8: true,
|
||||||
|
reduce_vars: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
function f(a) {
|
||||||
|
a = 0;
|
||||||
|
(function a() {
|
||||||
|
var a;
|
||||||
|
console.log(a);
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
f();
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
function f(a) {
|
||||||
|
a = 0;
|
||||||
|
(function a() {
|
||||||
|
var a;
|
||||||
|
console.log(a);
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
f();
|
||||||
|
}
|
||||||
|
expect_stdout: "undefined"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user