Age | Commit message (Expand) | Author |
---|---|---|
2017-03-03 | process code with implicit return statement (#1522)...Bookmarklet for instance implicitedly assumes a "completion value" without using `return`. The `expression` option now supports such use cases. Optimisations on IIFEs also enhanced. fixes #354 fixes #543 fixes #625 fixes #628 fixes #640 closes #1293 | Alex Lam S.L |
2017-03-03 | fix chained assignment with `unused` (#1540)...When #1450 optimises `a=b=42`, it stops after the first variable even if both are unused. fixes #1539 | Alex Lam S.L |
2017-02-24 | enable `collapse_vars` & `reduce_vars` by default...- fix corner cases in `const` optimisation - deprecate `/*@const*/` fixes #1497 closes #1498 | alexlamsl |
2017-02-21 | fix `pure_funcs` & improve `side_effects`...- only drops side-effect-free arguments - drop side-effect-free parts with discarded value from `AST_Seq` & `AST_SimpleStatement` closes #1494 | alexlamsl |
2017-02-21 | improve keep_fargs & keep_fnames...- utilise in_use_ids instead of unreferenced() - drop_unused now up-to-date for subsequent passes closes #1476 | alexlamsl |
2017-02-21 | drop unused: toplevel, assign-only...- assign statement does not count towards variable usage by default - only works with assignments on the same scope level as declaration - can be disabled with `unused` set to "keep_assign" - `toplevel` to drop unused top-level variables and/or functions - `top_retain` to whitelist top-level exceptions closes #1450 | alexlamsl |
2015-09-14 | Control keeping function arguments with a single option | Ville Lautanala |
2015-03-20 | Keep unused function arguments by default...Discarding unused function arguments affects function.length, which can lead to some hard to debug issues. This optimization is now done only in "unsafe mode". Fix #121 | Mihai Bazon |
2015-01-04 | Add a "keep_fnames" option to the compressor to retain function expression names...See #552. This is useful for stack traces. | Richard van Velzen |
2013-12-05 | AST_Catch shouldn't really inherit from AST_Scope. Fix #363...I hereby acknowledge that figure_out_scope has become a mess. | Mihai Bazon |
2013-08-07 | Don't drop unused setter argument....Fix #257 | Mihai Bazon |
2012-10-13 | drop unused function arguments...also add test for "drop_unused" (the last one fails for now) | Mihai Bazon |