[Pkg-javascript-commits] [uglifyjs] 04/11: Drop NaN -> 0/0 transformation.

Jonas Smedegaard dr at jones.dk
Tue May 19 00:02:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag v2.4.21
in repository uglifyjs.

commit 274e1b3dc75ff72c85f803f642e3bb51a0d15953
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date:   Fri Apr 17 11:25:19 2015 +0300

    Drop NaN -> 0/0 transformation.
    
    Fix #687
---
 lib/compress.js | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/lib/compress.js b/lib/compress.js
index fa89c32..7d20a4e 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list