Skip to content

Commit

Permalink
temporary fix for boolean bug (#1597)
Browse files Browse the repository at this point in the history
fixes #1592
  • Loading branch information
alexlamsl authored Mar 10, 2017
1 parent d9344f3 commit e3a3db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e3a3db7

Please sign in to comment.