Permalink
Commits on Dec 9, 2011
  1. @mishoo

    version 1.2

    mishoo committed Dec 9, 2011
  2. @mishoo

    updated doc

    added --no-mangle-functions
    mishoo committed Dec 9, 2011
  3. @mishoo

    option to prevent mangling or dropping of function names (#267)

    pass -nmf (--no-mangle-functions)
    mishoo committed Dec 9, 2011
Commits on Dec 3, 2011
  1. @ikokostya
  2. @ikokostya
  3. @ikokostya
  4. @mishoo
Commits on Dec 2, 2011
  1. @mishoo

    Merge pull request #248 from WolfgangKluge/endpos-in-tokens

    Keep the end position of each token
    mishoo committed Dec 2, 2011
  2. @mishoo

    Merge pull request #258 from ikokostya/fix-error-pos

    Fixed parse error position: start line number and column number from 1.
    mishoo committed Dec 2, 2011
  3. @mishoo

    Use a different scope for labels than for variables.

    This makes it safe to minify toplevel labels, since they can't be referenced
    from outside their immediate body.  Additionally, discard labels that aren't
    referenced.  Updated tests.
    
    (fixes #256)
    mishoo committed Dec 2, 2011
  4. @mishoo

    Merge pull request #263 from ikokostya/object

    Unsafe Object constructor transformations:
    mishoo committed Dec 2, 2011
  5. @ikokostya

    Unsafe Object constructor transformations:

    new Object()  => {}
    new Object    => {}
    Object()      => {}
    new Object(x) => Object(x)
    ikokostya committed Dec 2, 2011
Commits on Nov 25, 2011
  1. @mishoo

    some cleanup

    (it seems we don't need the scope in ast_squeeze; moved code that drops
    unused lambda names in ast_mangle)
    mishoo committed Nov 25, 2011
  2. @mishoo

    at most one ';' at EOF

    mishoo committed Nov 25, 2011
Commits on Nov 23, 2011
  1. @ikokostya
Commits on Nov 21, 2011
  1. @mishoo

    String(a) => a+"" (with --unsafe)

    fixes #254
    mishoo committed Nov 21, 2011
Commits on Oct 25, 2011
  1. @WolfgangKluge

    Keep end position of each token

    The value is not sufficient to calculate the end position (e.g.
    string with escape sequences), so we need a new property.
    This modification allows e.g. color coding of the tokenized code.
    WolfgangKluge committed Oct 25, 2011
Commits on Oct 22, 2011
  1. @mishoo

    escaped slash character in regexp

    mishoo committed Oct 22, 2011
Commits on Oct 17, 2011
  1. @mishoo
Commits on Oct 11, 2011
  1. @mishoo

    version 1.1.1

    mishoo committed Oct 11, 2011
Commits on Sep 29, 2011
  1. @mishoo

    add final semicolon (closes #126)

    mishoo committed Sep 29, 2011
Commits on Sep 23, 2011
  1. @mishoo

    negating >= and <= operators is back to --unsafe (closes #239)

    Rationale: when one of the operands is undefined, the result is always
    false, therefore we would have `a <= b` === `a > b` === `false`, changing
    the value of conditional expressions that rely on this horrible JS kludge.
    mishoo committed Sep 23, 2011
  2. @mishoo

    better fix instead of f896f69

    mishoo committed Sep 23, 2011
  3. @mishoo

    fix parenthesization of anonymous function calls

    after 1721863 expressions like this:
    
    `(function(){ ... })()`
    
    were added two pairs of parens.
    mishoo committed Sep 23, 2011
  4. @mishoo

    reverted last patch

    (escaped literal newlines shouldn't be kept in fact.. always get tricked on
    this)
    mishoo committed Sep 23, 2011
  5. @mishoo
  6. @mishoo

    Merge pull request #238 from proxv/multiline-strings-semicolons

    Don't insert semicolons before multi-line strings.
    mishoo committed Sep 23, 2011
  7. @paulbaumgart

    Don't insert semicolons before multi-line strings.

    (Escaped) newlines in multi-line strings don't count as
    newlines for semicolon insertion purposes.
    paulbaumgart committed Sep 23, 2011
Commits on Sep 21, 2011
  1. @mishoo
Commits on Sep 20, 2011
  1. @paulbaumgart

    Parenthesize function expressions.

    Anonymous and named function expressions get parens:
    (function(){}) -> (function(){})
    (function f(){}) -> (function f(){})
    
    But function declarations get left alone:
    function f(){} -> function f(){}
    paulbaumgart committed Sep 20, 2011
  2. @mishoo

    fixed version for NPM

    mishoo committed Sep 20, 2011
  3. @mishoo

    version 1.1

    mishoo committed Sep 20, 2011
  4. @mishoo
  5. @mishoo
  6. @mishoo