diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2015-03-22 12:50:36 +0200 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2015-03-22 12:50:36 +0200 |
commit | 36c28e02fda0beb169f5f98377cc09a83446a784 (patch) | |
tree | 18c87dd54d6702cc85da0493a027b7643d526abf /lib | |
parent | ecfd881ac6f4f62b5e8a15664fccc86271c0d003 (diff) | |
download | tracifyjs-36c28e02fda0beb169f5f98377cc09a83446a784.tar.gz tracifyjs-36c28e02fda0beb169f5f98377cc09a83446a784.zip |
Add start/end nodes for NaN/Infinity transformations
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 8 |
1 files changed, 4 insertions, 4 deletions
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}) }); }); |