Permalink
Commits on Oct 29, 2012
  1. fix source-map version

    committed Oct 29, 2012
Commits on Oct 25, 2012
  1. v2.1.4

    mishoo committed Oct 25, 2012
  2. cripple scope to make IE happy :-(

    close #24
    mishoo committed Oct 25, 2012
  3. test for fs.existsSync

    mishoo committed Oct 25, 2012
Commits on Oct 24, 2012
  1. v2.1.3

    mishoo committed Oct 24, 2012
  2. fix for `if (...) return; else return ...;`

    (it was assumed that the first `return` always contains a value)
    
    close #22
    mishoo committed Oct 24, 2012
Commits on Oct 22, 2012
  1. more sequence optimizations (lift some sequences above binary/unary e…

    …xpressions so that we can avoid parens)
    mishoo committed Oct 22, 2012
  2. v2.1.2

    mishoo committed Oct 22, 2012
Commits on Oct 20, 2012
  1. alternate hack to disable deprecation warning

    ref #9, close #20
    mishoo committed Oct 20, 2012
Commits on Oct 19, 2012
  1. Merge pull request #19 from SevInf/master

    Allow to specify sourceRoot in minify
    mishoo committed Oct 19, 2012
  2. minor fix for dropping unused definitions.

        function f(x, y) {
            var g = function() { return h() };
            var h = function() { return g() };
            return x + y;
        }
    
    now compresses to `function f(x, y) { return x + y }`
    mishoo committed Oct 19, 2012
  3. Add sourceRoot option to minify

    Sergej Tatarincev committed Oct 19, 2012
Commits on Oct 18, 2012
  1. add fromString argument to `UglifyJS.minify` (allows to pass the source

    code, instead of file names, as first argument).
    
    close #17
    mishoo committed Oct 18, 2012
  2. v2.1.1

    mishoo committed Oct 18, 2012
  3. fix `--comments` (close #16)

    mishoo committed Oct 18, 2012
Commits on Oct 17, 2012
  1. v2.1.0

    mishoo committed Oct 17, 2012
  2. more small optimizations

    (unlikely to help for hand-written code)
    mishoo committed Oct 17, 2012
  3. employ a better parser for command-line arguments

    to support passing commas in strings in for example:
    
        uglifyjs2 -cd TEST="'a,b'" <<EOF
        console.log(TEST);
        EOF
    
        → console.log("a,b")
    
    close #14
    mishoo committed Oct 17, 2012
  4. the `sort` option is broken anyway, removed it

    we need to mangle names from outermost to innermost scope; mangling names
    from inner scopes before we got to the outer scope won't work correctly,
    therefore sorting doesn't make sense.
    mishoo committed Oct 17, 2012
  5. add `semicolons` option in the code generator (default: `true`)

    pass `false` to separate statements with newlines instead of semicolons
    mishoo committed Oct 17, 2012
Commits on Oct 16, 2012
Commits on Oct 13, 2012
  1. drop unused function arguments

    also add test for "drop_unused" (the last one fails for now)
    mishoo committed Oct 13, 2012
  2. fix compressing benchmark.js (it tried to evaluate a statement)

    the following code in benchmark.js triggered the issue:
    
        support.decompilation = Function(
          'return (' + (function(x) { return { 'x': '' + (1 + x) + '', 'y': 0 }; }) + ')'
        )()(0).x === '1';
    
    technically that could be resolved into a constant expression, but seems
    it's being used here for browser bugs detection :-\
    mishoo committed Oct 13, 2012
  3. minor

    mishoo committed Oct 13, 2012
  4. fix regression from fb5c01c

    is_digit takes a char code now, not a string
    mishoo committed Oct 13, 2012
Commits on Oct 12, 2012
  1. update for acorn

    mishoo committed Oct 12, 2012
  2. minor

    mishoo committed Oct 12, 2012