Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-03-14 | Add property name mangler | Mihai Bazon | |
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. | |||
2013-12-10 | semicolons | Mihai Bazon | |
2013-12-10 | Merge pull request #245 from ForbesLindesay/patch-1 | Mihai Bazon | |
Make `DefaultsError` a real `Error` object | |||
2013-11-28 | Add --noerr to turn off argument name checking | Mihai Bazon | |
for now only used for keys passed to `-c` or `-b`. | |||
2013-07-22 | Make `DefaultsError` a real `Error` object | Forbes Lindesay | |
2013-05-14 | Only compress code in `new Function` if all arguments are strings. | Mihai Bazon | |
2012-12-05 | When hoisting variables, try to merge in assignments that follow. | Mihai Bazon | |
2012-11-06 | add option to mangle names even if eval/with is in use | Mihai Bazon | |
(for more fair comparison to Closure compiler) | |||
2012-11-02 | use a Dictionary object instead of plain object for hashes | Mihai Bazon | |
to mitigate the `__proto__` issue related to #30 | |||
2012-10-18 | more optimizations for some break/continue cases | Mihai Bazon | |
2012-10-11 | stealing more hacks from acorn in the name of speed | Mihai Bazon | |
2012-10-11 | using makeComparator from acorn to generate functions that tests whether a | Mihai Bazon | |
string is keyword, reserved etc. speeds up the parser a bit, though not spectacular.. still far from acorn. | |||
2012-10-11 | cleanup | Mihai Bazon | |
- use prototype-less objects where feasible (minor speed improvement) - get rid of HOP | |||
2012-10-02 | "use strict"; | Mihai Bazon | |
2012-10-02 | a shy attempt to obey `width` in the beautifier; added `bracketize` option ↵ | Mihai Bazon | |
to always print brackets around if/do/while/for statements; export more options via the CLI | |||
2012-09-26 | compressor successfully moved to TreeTransformer | Mihai Bazon | |
2012-09-23 | properly drop mutually-referring declarations that are not otherwise | Mihai Bazon | |
referenced and have no side effects | |||
2012-09-16 | rewrite handle_if_return | Mihai Bazon | |
optimizations of if/return/continue seem to be even better now | |||
2012-09-12 | more AST_If optimizations | Mihai Bazon | |
2012-09-11 | fixed some mess with symbols/scope | Mihai Bazon | |
- all symbols now have a `thedef` property which is a SymbolDef object, instead of the `uniq` that we had before (pointing to the first occurrence of the name as declaration). - for undeclared symbols we still create a SymbolDef object in the toplevel scope but mark it "undeclared" - we can now call figure_out_scope after squeezing, which is useful in order not to mangle names that were dropped by the squeezer | |||
2012-09-10 | adaptive base54 digits depending on char frequency (WIP) | Mihai Bazon | |
2012-09-10 | more progress on the compressor (WIP) | Mihai Bazon | |
2012-09-04 | checkpoint | Mihai Bazon | |
2012-09-03 | Reverting "minor perf. improvements" | Mihai Bazon | |
Revert "minor perf. improvements" This reverts commit 24bfd55a22afd791d4a97694641831cfbd27fb14. broke the parser somehow; too early to optimize, let's get the other stuff running. | |||
2012-09-02 | minor perf. improvements | Mihai Bazon | |
2012-08-27 | update (c) years | Mihai Bazon | |
2012-08-22 | added license | Mihai Bazon | |
2012-08-20 | added mangler and other stuff | Mihai Bazon | |
2012-08-20 | doc (WIP) | Mihai Bazon | |
2012-08-19 | simple visitor API and code to figure out scope and references | Mihai Bazon | |
2012-06-03 | WIP | Mihai Bazon | |
2012-05-27 | init repo | Mihai Bazon | |