aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2015-03-22 12:50:36 +0200
committerMihai Bazon <mihai.bazon@gmail.com>2015-03-22 12:50:36 +0200
commit36c28e02fda0beb169f5f98377cc09a83446a784 (patch)
tree18c87dd54d6702cc85da0493a027b7643d526abf /lib
parentecfd881ac6f4f62b5e8a15664fccc86271c0d003 (diff)
downloadtracifyjs-36c28e02fda0beb169f5f98377cc09a83446a784.tar.gz
tracifyjs-36c28e02fda0beb169f5f98377cc09a83446a784.zip
Add start/end nodes for NaN/Infinity transformations
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js8
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})
});
});