From 36c28e02fda0beb169f5f98377cc09a83446a784 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Sun, 22 Mar 2015 12:50:36 +0200 Subject: Add start/end nodes for NaN/Infinity transformations --- lib/compress.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/compress.js b/lib/compress.js index 4636716e..17bebf77 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}) }); }); -- cgit v1.2.3