aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-03-11 04:59:55 +0800
committerGitHub <noreply@github.com>2017-03-11 04:59:55 +0800
commite3a3db73ae4c2c90ad304e1e6b7d019053ca3dc3 (patch)
tree16efef6cef0073e211fbe2e9a8040c5dabde0233
parentd9344f30b83ecdfc8310ff43b9361c67cc85ec3e (diff)
downloadtracifyjs-e3a3db73ae4c2c90ad304e1e6b7d019053ca3dc3.tar.gz
tracifyjs-e3a3db73ae4c2c90ad304e1e6b7d019053ca3dc3.zip
temporary fix for boolean bug (#1597)
fixes #1592
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 7302f5b9..e3ae5bde 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -404,7 +404,7 @@ merge(Compressor.prototype, {
return make_node(AST_Number, orig, { value: val });
case "boolean":
- return make_node(val ? AST_True : AST_False, orig).transform(compressor);
+ return make_node(val ? AST_True : AST_False, orig).optimize(compressor);
case "undefined":
return make_node(AST_Undefined, orig).transform(compressor);
default: