@@ -3441,7 +3441,7 @@ merge(Compressor.prototype, {
|
|||||||
if (is_undeclared_ref(this) && this.is_declared(compressor)) return false;
|
if (is_undeclared_ref(this) && this.is_declared(compressor)) return false;
|
||||||
if (this.is_immutable()) return false;
|
if (this.is_immutable()) return false;
|
||||||
var def = this.definition();
|
var def = this.definition();
|
||||||
if (is_arguments(def) && all(def.scope.argnames, function(argname) {
|
if (is_arguments(def) && !def.scope.rest && all(def.scope.argnames, function(argname) {
|
||||||
return argname instanceof AST_SymbolFunarg;
|
return argname instanceof AST_SymbolFunarg;
|
||||||
})) return def.scope.uses_arguments > 2;
|
})) return def.scope.uses_arguments > 2;
|
||||||
var fixed = this.fixed_value();
|
var fixed = this.fixed_value();
|
||||||
|
|||||||
@@ -918,3 +918,32 @@ issue_4560_3: {
|
|||||||
expect_stdout: "PASS"
|
expect_stdout: "PASS"
|
||||||
node_version: ">=6"
|
node_version: ">=6"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_4614: {
|
||||||
|
options = {
|
||||||
|
pure_getters: "strict",
|
||||||
|
side_effects: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
try {
|
||||||
|
(function(...[]) {
|
||||||
|
var arguments;
|
||||||
|
arguments[0];
|
||||||
|
})();
|
||||||
|
} catch (e) {
|
||||||
|
console.log("PASS");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
try {
|
||||||
|
(function(...[]) {
|
||||||
|
var arguments;
|
||||||
|
arguments[0];
|
||||||
|
})();
|
||||||
|
} catch (e) {
|
||||||
|
console.log("PASS");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
expect_stdout: true
|
||||||
|
node_version: ">=6"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user