Commits on Mar 15, 2011
  1. Update package.json for 1.0.0 and npm

    Chris Hoffman
    Chris Hoffman committed Mar 15, 2011
  2. fixed parsing for stuff like 0x12.toFixed() (when we have 0x, the dot…

    mishoo committed Mar 15, 2011
    … cannot
    be part of the number)
  3. only add a second dot in forms like (5).toFixed() if the number is in…

    mishoo committed Mar 15, 2011
    That is, the correct transformation for (0.9).toFixed() is .9.toFixed()
    (fixes #109)
Commits on Mar 13, 2011
Commits on Feb 28, 2011
  1. added --ascii option, useful to encode non-ASCII characters as \uXXXX.

    mishoo committed Feb 28, 2011
    apply this to literal object property names and identifiers too.
  2. add an ascii_only option to gen_code

    marijnh committed Feb 28, 2011
    This will make sure string literals have non-ascii characters
    escaped as \u sequences, so that the resulting file can be
    served up any old way without causing encoding problems.
    Slightly changes the parameter conventions for gen_code (in
    a backwards-compatible way). If you want to pass options
    without pretty-printing, the second argument to gen_code
    should have a beautify: false property. So to get ascii_only
    mode, you pass {ascii_only: true, beautify: false}.
Commits on Feb 25, 2011
Commits on Feb 22, 2011
  1. fixes #99

    mishoo committed Feb 22, 2011
Commits on Feb 20, 2011
  1. reverted 687382e and updated testparser.js

    mishoo committed Feb 20, 2011
    to use valid code.
  2. renamed variable "strict_mode" to "exigent_mode", to avoid confusion …

    mishoo committed Feb 20, 2011
    ES5's "use strict;" (which, for the time being, we don't care about).
  3. support funny cases of for-in:

    mishoo committed Feb 20, 2011
    for (var x = 5 in y);
    for (a[i++] in z);
    (essentially ported Marijn's fix from
    and updated the walker/mangler/generator)
  4. allow new Date++

    mishoo committed Feb 20, 2011
  5. minor

    mishoo committed Feb 20, 2011
  6. fixed some regexps

    mishoo committed Feb 20, 2011
  7. disabled some checks by default (they're enabled in strict_mode):

    mishoo committed Feb 20, 2011
    - continue/break outside loop/switch
    - return outside of function
    - continue/break label not defined
  8. issue #96 (regular expression flags) -- accept any identifier charact…

    mishoo committed Feb 20, 2011
    …er for
    regular expression flags (ES-262, 7.8.5)
Commits on Feb 19, 2011
  1. fixes #92 -- added --reserved-names command line argument (pass one o…

    mishoo committed Feb 19, 2011
    …r more
    names separated by a comma to exclude them from compression)
Commits on Feb 18, 2011
  1. slightly better fix, in case your inline function is named toString,

    mishoo committed Feb 18, 2011
    hasOwnProperty or whatever.. :)
Commits on Feb 17, 2011
Commits on Feb 9, 2011
  1. resolved conflict

    mishoo committed Feb 9, 2011
Commits on Feb 8, 2011
  1. fixes #87 -- transform while(true){...} into for(;;){...}. Drop the b…

    mishoo committed Feb 8, 2011
    if it's empty.
    Additionally improved evaluation of constant expressions, so that something
    like the following will stand too:
        while (typeof "foo" == "string") { bar() }  ==>  for(;;)bar()
    Also removed dead code (when we can determine that the condition of a
    while/do is constantly false, or the condition of an IF is constant)
    The savings, though, seem to be insignificant on real-world code.
Commits on Feb 7, 2011
Commits on Feb 5, 2011
  1. keep the first token in ast_walker, ast_add_scope and ast_mangle (use…

    mishoo committed Feb 5, 2011
    …ful for
    the case where we include the original token in the AST, see parse())