Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-04-24 | fix corner case in `unsafe` (#3380) | Alex Lam S.L | |
2018-07-01 | fix corner case in `unused` | alexlamsl | |
2018-02-18 | fix `dead_code` on exceptional `return` (#2930) | Alex Lam S.L | |
fixes #2929 | |||
2018-02-01 | avoid `evaluate` of compound assignment after `dead_code` transform (#2861) | Alex Lam S.L | |
fixes #2860 | |||
2018-01-19 | improve `unused` on built-in functions (#2817) | Alex Lam S.L | |
2018-01-09 | patch variable declaractions extracted within `catch` (#2753) | Alex Lam S.L | |
fixes #2749 | |||
2018-01-04 | forbid block-scoped `AST_Defun` in strict mode (#2718) | Alex Lam S.L | |
2018-01-02 | scan within IIFEs of assigned values (#2702) | Alex Lam S.L | |
fixes #2701 | |||
2017-12-30 | fix `dead_code` on escaped `return` assignment (#2693) | Alex Lam S.L | |
fixes #2692 | |||
2017-12-27 | fix `dead_code` on `return` assignments (#2668) | Alex Lam S.L | |
fixes #2666 | |||
2017-12-15 | fix `dead_code` on nested `try` (#2599) | Alex Lam S.L | |
fixes #2597 | |||
2017-12-14 | improve `dead_code` tests (#2589) | kzc | |
for #2588 | |||
2017-12-14 | fix `dead_code` on `return`/`throw` within `try` (#2588) | Alex Lam S.L | |
2017-12-14 | drop local assign-only variable in `return` (#2587) | Alex Lam S.L | |
2017-12-01 | improve compression of `if` conditions (#2544) | Alex Lam S.L | |
2017-12-01 | improve compression of loop conditions (#2543) | Alex Lam S.L | |
2017-11-11 | implement compress option `reduce_funcs` (#2466) | Alex Lam S.L | |
- inline single-use function declarations as expressions when permissible - depend on `reduce_vars` - enabled by default - disable for speed critical code fixes #2464 | |||
2017-09-07 | extend `unsafe` on pure global functions (#2303) | Alex Lam S.L | |
2017-09-07 | add `Date` and other known globals to `unsafe` compress option (#2302) | kzc | |
2017-07-15 | drop `unused` builtin globals under `unsafe` (#2236) | Alex Lam S.L | |
fixes #2233 | |||
2017-05-27 | extend `node_version` range on applicable tests (#2015) | Alex Lam S.L | |
2017-05-26 | fix `dead_code` on block-scoped `function` under "use strict" (#2006) | Alex Lam S.L | |
Technically not part of ES5, but commonly used code exists in the wild. | |||
2017-05-14 | fix bugs with getter/setter (#1926) | Alex Lam S.L | |
- `reduce_vars` - `side_effects` - property access for object - `AST_SymbolAccessor` as key names enhance `test/ufuzz.js` - add object getter & setter - property assignment to setter - avoid infinite recursion in setter - fix & adjust assignment operators - 50% `=` - 25% `+=` - 2.5% each for the rest - avoid "Invalid array length" - fix `console.log()` - bypass getter - curb recursive reference - deprecate `-E`, always report runtime errors | |||
2017-05-12 | remove support for `const` (#1910) | Alex Lam S.L | |
As this is not part of ES5. | |||
2017-03-30 | optimize try-catch-finally (#1731) | Alex Lam S.L | |
- eliminate empty blocks - flatten out if try-block does not throw | |||
2017-03-19 | make `expect_stdout` work on Node.js 0.12 (#1623) | Alex Lam S.L | |
That particular version of Node.js has messed up error messages, so provide a version-specific workaround. Also fixed an formatting issue which would cause `expect_stdout` to fail if error message contains excerpts of input. Apply `expect_stdout` to more applicable tests. | |||
2017-03-07 | avoid substitution of global variables (#1557) | Alex Lam S.L | |
- unless `toplevel` is enabled - global `const` works as before | |||
2017-02-28 | warn & drop `#__PURE__` iff IIFE is dropped (#1511) | Alex Lam S.L | |
- consolidate `side-effects` optimisations - improve string `+` optimisation - enhance literal & `conditionals` optimisations | |||
2017-02-24 | enable `collapse_vars` & `reduce_vars` by default | alexlamsl | |
- fix corner cases in `const` optimisation - deprecate `/*@const*/` fixes #1497 closes #1498 | |||
2017-02-21 | Add .gitattributes to checkout lf eol style | Anthony Van de Gejuchte | |
closes #1487 | |||
2016-01-20 | Tighten up @const regex. | Samuel Reed | |
2016-01-20 | Use TreeWalker for more accurate @const results and update tests | Samuel Reed | |
2016-01-19 | Mark vars with /** @const */ pragma as consts so they can be eliminated. | Samuel Reed | |
Fixes older browser support for consts and allows more flexibility in dead code removal. | |||
2015-02-11 | Clean up unit test breakage | Richard van Velzen | |
In 992b6b9fcce47ca67ecb14675f10b172ce7a99b5 unit test broke (which I missed). This was due to undeclared variables not being side-effects free. However, since they're really not side-effect free, just declare them in the test cases. | |||
2012-09-07 | always keep declarations found in unreachable code | Mihai Bazon | |
a few more tests and some cleanups. | |||
2012-08-27 | minor | Mihai Bazon | |
2012-08-22 | wrote more of the compressor and added some tests | Mihai Bazon | |