Skip to content
Commits on Dec 3, 2011
  1. @ikokostya
Commits on Dec 2, 2011
  1. Merge pull request #248 from WolfgangKluge/endpos-in-tokens

    committed Dec 2, 2011
    Keep the end position of each token
  2. Merge pull request #258 from ikokostya/fix-error-pos

    committed Dec 2, 2011
    Fixed parse error position: start line number and column number from 1.
  3. Use a different scope for labels than for variables.

    committed Dec 2, 2011
    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)
  4. Merge pull request #263 from ikokostya/object

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

    Unsafe Object constructor transformations:

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

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

    committed Nov 25, 2011
Commits on Nov 23, 2011
  1. @ikokostya
Commits on Nov 21, 2011
  1. String(a) => a+"" (with --unsafe)

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

    Keep end position of each token

    WolfgangKluge committed Oct 25, 2011
    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.
Commits on Oct 22, 2011
  1. escaped slash character in regexp

    committed Oct 22, 2011
Commits on Oct 17, 2011
Commits on Oct 11, 2011
  1. version 1.1.1

    committed Oct 11, 2011
Commits on Sep 29, 2011
  1. add final semicolon (closes #126)

    committed Sep 29, 2011
Commits on Sep 23, 2011
  1. negating >= and <= operators is back to --unsafe (closes #239)

    committed Sep 23, 2011
    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.
  2. better fix instead of f896f69

    committed Sep 23, 2011
  3. fix parenthesization of anonymous function calls

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

    committed Sep 23, 2011
    (escaped literal newlines shouldn't be kept in fact.. always get tricked on
    this)
  5. Merge pull request #238 from proxv/multiline-strings-semicolons

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

    Don't insert semicolons before multi-line strings.

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

    Parenthesize function expressions.

    paulbaumgart committed Sep 19, 2011
    Anonymous and named function expressions get parens:
    (function(){}) -> (function(){})
    (function f(){}) -> (function f(){})
    
    But function declarations get left alone:
    function f(){} -> function f(){}
  2. fixed version for NPM

    committed Sep 20, 2011
  3. version 1.1

    committed Sep 20, 2011
  4. Merge pull request #211 from lautis/unicode-whitespace

    committed Sep 20, 2011
    Recognize various Unicode whitespace
  5. semicolons

    committed Sep 20, 2011
  6. Merge pull request #172 from 5long/master

    committed Sep 20, 2011
    Better parser error message for node
Something went wrong with that request. Please try again.