[Pkg-javascript-commits] [uglifyjs] 69/77: Add start/end nodes for NaN/Infinity transformations

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


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

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

commit 36c28e02fda0beb169f5f98377cc09a83446a784
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date:   Sun Mar 22 12:50:36 2015 +0200

    Add start/end nodes for NaN/Infinity transformations
---
 lib/compress.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/compress.js b/lib/compress.js
index 4636716..17bebf7 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -2267,16 +2267,16 @@ merge(Compressor.prototype, {
     OPT(AST_Infinity, function (self, compressor) {
         return make_node(AST_Binary, self, {
             operator : '/',
-            left     : make_node(AST_Number, null, {value: 1}),
-            right    : make_node(AST_Number, null, {value: 0})
+            left     : make_node(AST_Number, self, {value: 1}),
+            right    : make_node(AST_Number, self, {value: 0})
         });
     });
 
     OPT(AST_NaN, function (self, compressor) {
         return make_node(AST_Binary, self, {
             operator : '/',
-            left     : make_node(AST_Number, null, {value: 0}),
-            right    : make_node(AST_Number, null, {value: 0})
+            left     : make_node(AST_Number, self, {value: 0}),
+            right    : make_node(AST_Number, self, {value: 0})
         });
     });
 

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