aboutsummaryrefslogtreecommitdiff
path: root/test/compress/dead-code.js
AgeCommit message (Expand)Author
2018-07-01fix corner case in `unused`alexlamsl
2018-02-18fix `dead_code` on exceptional `return` (#2930)...fixes #2929Alex Lam S.L
2018-02-01avoid `evaluate` of compound assignment after `dead_code` transform (#2861)...fixes #2860Alex Lam S.L
2018-01-19improve `unused` on built-in functions (#2817)Alex Lam S.L
2018-01-09patch variable declaractions extracted within `catch` (#2753)...fixes #2749Alex Lam S.L
2018-01-04forbid block-scoped `AST_Defun` in strict mode (#2718)Alex Lam S.L
2018-01-02scan within IIFEs of assigned values (#2702)...fixes #2701Alex Lam S.L
2017-12-30fix `dead_code` on escaped `return` assignment (#2693)...fixes #2692Alex Lam S.L
2017-12-27fix `dead_code` on `return` assignments (#2668)...fixes #2666Alex Lam S.L
2017-12-15fix `dead_code` on nested `try` (#2599)...fixes #2597Alex Lam S.L
2017-12-14improve `dead_code` tests (#2589)...for #2588kzc
2017-12-14fix `dead_code` on `return`/`throw` within `try` (#2588)Alex Lam S.L
2017-12-14drop local assign-only variable in `return` (#2587)Alex Lam S.L
2017-12-01improve compression of `if` conditions (#2544)Alex Lam S.L
2017-12-01improve compression of loop conditions (#2543)Alex Lam S.L
2017-11-11implement compress option `reduce_funcs` (#2466)...- inline single-use function declarations as expressions when permissible - depend on `reduce_vars` - enabled by default - disable for speed critical code fixes #2464Alex Lam S.L
2017-09-07extend `unsafe` on pure global functions (#2303)Alex Lam S.L
2017-09-07add `Date` and other known globals to `unsafe` compress option (#2302)kzc
2017-07-15drop `unused` builtin globals under `unsafe` (#2236)...fixes #2233Alex Lam S.L
2017-05-27extend `node_version` range on applicable tests (#2015)Alex Lam S.L
2017-05-26fix `dead_code` on block-scoped `function` under "use strict" (#2006)...Technically not part of ES5, but commonly used code exists in the wild.Alex Lam S.L
2017-05-14fix bugs with getter/setter (#1926)...- `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 errorsAlex Lam S.L
2017-05-12remove support for `const` (#1910)...As this is not part of ES5.Alex Lam S.L
2017-03-30optimize try-catch-finally (#1731)...- eliminate empty blocks - flatten out if try-block does not throwAlex Lam S.L
2017-03-19make `expect_stdout` work on Node.js 0.12 (#1623)...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.Alex Lam S.L
2017-03-07avoid substitution of global variables (#1557)...- unless `toplevel` is enabled - global `const` works as beforeAlex Lam S.L
2017-02-28warn & drop `#__PURE__` iff IIFE is dropped (#1511)...- consolidate `side-effects` optimisations - improve string `+` optimisation - enhance literal & `conditionals` optimisationsAlex Lam S.L
2017-02-24enable `collapse_vars` & `reduce_vars` by default...- fix corner cases in `const` optimisation - deprecate `/*@const*/` fixes #1497 closes #1498 alexlamsl
2017-02-21Add .gitattributes to checkout lf eol style...closes #1487 Anthony Van de Gejuchte
2016-01-20Tighten up @const regex.Samuel Reed
2016-01-20Use TreeWalker for more accurate @const results and update testsSamuel Reed
2016-01-19Mark vars with /** @const */ pragma as consts so they can be eliminated....Fixes older browser support for consts and allows more flexibility in dead code removal. Samuel Reed
2015-02-11Clean up unit test breakage...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. Richard van Velzen
2012-09-07always keep declarations found in unreachable code...a few more tests and some cleanups. Mihai Bazon
2012-08-27minorMihai Bazon
2012-08-22wrote more of the compressor and added some testsMihai Bazon