@@ -456,7 +456,7 @@ merge(Compressor.prototype, {
|
||||
}
|
||||
|
||||
function can_drop_symbol(ref, compressor, keep_lambda) {
|
||||
var def = ref.definition();
|
||||
var def = ref.redef || ref.definition();
|
||||
if (ref.in_arg && is_funarg(def)) return false;
|
||||
return all(def.orig, function(sym) {
|
||||
if (sym instanceof AST_SymbolConst || sym instanceof AST_SymbolLet) {
|
||||
|
||||
@@ -1938,3 +1938,22 @@ issue_5138_2: {
|
||||
expect_stdout: "PASS"
|
||||
node_version: ">=6"
|
||||
}
|
||||
|
||||
issue_5192: {
|
||||
options = {
|
||||
dead_code: true,
|
||||
ie: true,
|
||||
}
|
||||
input: {
|
||||
(function a(a, [] = a = "PASS") {
|
||||
console.log(a);
|
||||
})("FAIL");
|
||||
}
|
||||
expect: {
|
||||
(function a(a, [] = a = "PASS") {
|
||||
console.log(a);
|
||||
})("FAIL");
|
||||
}
|
||||
expect_stdout: "PASS"
|
||||
node_version: ">=6"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user