drop_debugger : !false_by_default,
unsafe : !false_by_default,
conditionals : !false_by_default,
- comparations : !false_by_default,
+ comparisons : !false_by_default,
evaluate : !false_by_default,
booleans : !false_by_default,
loops : !false_by_default,
unused : !false_by_default,
hoist_funs : !false_by_default,
- hoist_vars : !false_by_default,
+ hoist_vars : false,
if_return : !false_by_default,
join_vars : !false_by_default,
cascade : !false_by_default,
});
def(AST_Binary, function(compressor){
var self = this.clone(), op = this.operator;
- if (compressor.option("comparations") && compressor.option("unsafe")) {
+ if (compressor.option("comparisons") && compressor.option("unsafe")) {
switch (op) {
case "<=" : self.operator = ">" ; return self;
case "<" : self.operator = ">=" ; return self;
});
OPT(AST_Binary, function(self, compressor){
- if (compressor.option("comparations")) switch (self.operator) {
+ if (compressor.option("comparisons")) switch (self.operator) {
case "===":
case "!==":
if ((self.left.is_string() && self.right.is_string()) ||
if (best_of(exp[0], self) !== self)
return exp[0];
}
- if (compressor.option("comparations")) {
+ if (compressor.option("comparisons")) {
if (!(compressor.parent() instanceof AST_Binary)) {
var negated = make_node(AST_UnaryPrefix, self, {
operator: "!",