UglifyJS/lib
Mihai Bazon ea3430102c Add property name mangler
We only touch properties that are present in an object literal, or which are
assigned to.  Example:

    x = { foo: 1 };
    x.bar = 2;
    x["baz"] = 3;
    x[cond ? "qwe" : "asd"] = 4;
    console.log(x.stuff);

The names "foo", "bar", "baz", "qwe" and "asd" will be mangled, and the
resulting mangled names will be used for the same properties throughout the
code.  The "stuff" will not be, since it's just referenced but never
assigned to.

This *will* break most of the code out there, but could work on carefully
written code: do not use eval, do not define methods or properties by
walking an array of names, etc.  Also, a comprehensive list of exclusions
needs to be passed, to avoid mangling properties that are standard in
JavaScript, DOM, used in external libraries etc.
2015-03-14 11:22:28 +02:00
..
ast.js Add option to preserve/enforce string quote style 2015-01-27 22:26:27 +02:00
compress.js Fix invalid removal of left side in && and || compression 2015-02-11 21:08:41 +01:00
mozilla-ast.js Location fix for Mozilla AST start token. 2015-01-06 11:32:41 +01:00
output.js Add option to preserve/enforce string quote style 2015-01-27 22:26:27 +02:00
parse.js Add filename to the JS_Parse_Error exception. 2015-02-11 23:21:22 +01:00
propmangle.js Add property name mangler 2015-03-14 11:22:28 +02:00
scope.js Add an option to prevent function names from being mangled 2015-01-04 21:48:43 +01:00
sourcemap.js fixes issue #621 SourceMap toString JSON format 2015-01-24 00:33:02 -08:00
transform.js Apply transformer to AST_VarDef's name 2013-07-14 13:24:09 +03:00
utils.js Add property name mangler 2015-03-14 11:22:28 +02:00