Permalink
Commits on Aug 20, 2011
  1. version 1.0.7

    committed Aug 20, 2011
  2. updated doc

    committed Aug 20, 2011
Commits on Aug 16, 2011
  1. Merge pull request #202 from lautis/fix-broken-tests

    Fix tests broken after 3cd9829
    committed Aug 16, 2011
  2. @lautis

    Fix tests broken after 3cd9829

    lautis committed Aug 15, 2011
  3. Merge pull request #200 from johnjbarton/01a83b461f541898cb4b2f9ef033…

    …245c1a7ee18b
    
    Small fix to slice() to make it more robust and less confusing.
    committed Aug 16, 2011
Commits on Aug 15, 2011
  1. Merge pull request #199 from thorn0/patch-1

    Compatibility with the JScript engine, which doesn't support \v
    committed Aug 15, 2011
  2. @thorn0
  3. more fixes:

    - fixed a bug in ast_lift_variables (it took assignments from defun-s too)
    
    - keep order of inner defuns
    
    - always merge previous statement into `return`
    
    - disable turning `if (...) return; ...` into `if (!...) {...}` (adds 1K to
      jQuery; besides, `return` is not so bad after gzip)
    
    - run the mangler twice; the reason is that prepare_ifs does some
      optimizations that the mangler can benefit from, then the mangler does
      other optimizations that prepare_ifs can benefit from.  Fixes #191.
    
    We now beat Closure on jQuery by 1318 bytes (674 after gzip) and we're 6
    times faster.
    committed Aug 15, 2011
Commits on Aug 14, 2011
  1. mangle label names (fixes #151)

    committed Aug 14, 2011
  2. Easy yet safe optimization. Saves 119b on jQuery.

        { foo(); return bar(); } => return foo(),bar();
    
    In many cases there's a single statement before `return' (since we join
    consecutive statements into a sequence), therefore applying this small step
    allows us to discard the brackets completely.  Similar for `throw'.
    committed Aug 14, 2011
  3. more solid check need of semicolons after the last statement of a block.

    small cleanup in gen_code (using ast_walker now).
    
    (fixes #184, #198)
    committed Aug 14, 2011
  4. minor

    committed Aug 14, 2011
Commits on Aug 12, 2011
  1. @johnjbarton
Commits on Aug 3, 2011
  1. attempt to group assignments into the var declaration

    added --lift-vars to bin/uglifyjs options
    committed Aug 3, 2011
Commits on Jul 29, 2011
  1. Added ast_lift_variables, which does a little more than its name says:

    - move all var declarations to the top of the scope
    - drops redundant var declarations
    - removes unused function arguments
    - removes unreferenced inner functions
    
    It's commented out for now in bin/uglifyjs.  It seems safe, but however the
    generated code is a bit longer.  That's mainly because:
    
        var a = 1, b = 2, c = 3;
    
    becomes:
    
        var a, b, c;
        a = 1, b = 2, c = 3;
    
    I will improve on this.
    committed Jul 29, 2011
Commits on Jul 18, 2011
Commits on Jul 14, 2011
  1. version 1.0.6

    committed Jul 14, 2011
  2. Merge pull request #179 from eirikurn/master

    Regression regarding "with" statements in 1.0.4 and 1.0.5
    committed Jul 14, 2011
  3. Merge pull request #177 from mathiasbynens/master

    Only a subset of space characters is problematic after `</script`, so use `[\t\n\f\r ]` instead of `\s`.
    committed Jul 14, 2011
  4. @mathiasbynens
  5. @mathiasbynens
  6. version 1.0.5

    committed Jul 14, 2011
  7. updated doc

    committed Jul 14, 2011
  8. @eirikurn
Commits on Jul 10, 2011