add scope uses_eval check to arrows

This commit is contained in:
kzc 2017-12-21 03:11:40 -05:00
parent 129e186953
commit 681f771ce1

View File

@ -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