lib/uglifier.rb in uglifier-2.3.3 vs lib/uglifier.rb in uglifier-2.4.0

- old
+ new

@@ -48,10 +48,11 @@ :if_return => true, # Optimizations for if/return and if/continue :join_vars => true, # Join consecutive var statements :cascade => true, # Cascade sequences :negate_iife => true, # Negate immediately invoked function expressions to avoid extra parens :pure_getters => false, # Assume that object property access does not have any side-effects - :pure_funcs => nil # List of functions without side-effects. Can safely discard function calls when the result value is not used + :pure_funcs => nil, # List of functions without side-effects. Can safely discard function calls when the result value is not used + :drop_console => false # Drop calls to console.* functions }, # Apply transformations to code, set to false to skip :define => {}, # Define values for symbol replacement :enclose => false, # Enclose in output function wrapper, define replacements as key-value pairs :source_filename => nil, # The filename of the input file :source_root => nil, # The URL of the directory which contains :source_filename