add scope uses_eval check to arrows
This commit is contained in:
parent
129e186953
commit
681f771ce1
|
|
@ -5415,6 +5415,7 @@ merge(Compressor.prototype, {
|
|||
if (compressor.option("arrows")
|
||||
&& compressor.parent() instanceof AST_Object
|
||||
&& !self.value.uses_arguments
|
||||
&& !self.value.uses_eval
|
||||
&& self.value.body.length == 1
|
||||
&& self.value.body[0] instanceof AST_Return
|
||||
&& self.value.body[0].value
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user