From: Mihai Bazon Date: Fri, 17 Apr 2015 08:25:19 +0000 (+0300) Subject: Drop NaN -> 0/0 transformation. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=274e1b3dc75ff72c85f803f642e3bb51a0d15953;p=UglifyJS.git Drop NaN -> 0/0 transformation. Fix #687 --- diff --git a/lib/compress.js b/lib/compress.js index fa89c322..7d20a4ea 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2272,14 +2272,6 @@ merge(Compressor.prototype, { }); }); - OPT(AST_NaN, function (self, compressor) { - return make_node(AST_Binary, self, { - operator : '/', - left : make_node(AST_Number, self, {value: 0}), - right : make_node(AST_Number, self, {value: 0}) - }); - }); - OPT(AST_Undefined, function(self, compressor){ if (compressor.option("unsafe")) { var scope = compressor.find_parent(AST_Scope);