aboutsummaryrefslogtreecommitdiff
path: root/test/compress/dead-code.js
AgeCommit message (Collapse)Author
2021-02-27fix corner cases with block-scoped functions (#4695)Alex Lam S.L
2021-01-19fix corner case in `dead_code` (#4571)Alex Lam S.L
fixes #4570
2021-01-01enhance `collapse_vars` & `dead_code` (#4491)Alex Lam S.L
2020-12-12clarify corner case in object literal (#4371)Alex Lam S.L
closes #4366
2020-10-27improve warnings (#4247)Alex Lam S.L
closes #4244
2020-10-12support `const` (#4190)Alex Lam S.L
2020-08-17fix corner cases in `collapse_vars` & `dead_code` (#4052)Alex Lam S.L
fixes #4051
2020-06-12fix corner case in `dead_code` (#3991)Alex Lam S.L
2020-06-12enhance `dead_code` (#3990)Alex Lam S.L
2020-06-08fix corner case in `dead_code` (#3969)Alex Lam S.L
fixes #3967
2020-05-29fix corner case in `evaluate` (#3934)Alex Lam S.L
fixes #3933
2020-05-19enhance `dead_code` (#3907)Alex Lam S.L
2020-05-06enhance `dead_code` (#3849)Alex Lam S.L
2020-04-30fix corner case in `dead_code` (#3831)Alex Lam S.L
fixes #3830
2020-04-22enhance `dead_code` (#3811)Alex Lam S.L
2020-01-28fix corner case in string concatenations (#3692)Alex Lam S.L
- migrate de-facto compression to `conditionals` & `strings` fixes #3689
2019-12-27fix corner case in `unsafe` (#3646)Alex Lam S.L
2019-11-13enhance `evaluate` & `inline` (#3580)Alex Lam S.L
2019-11-12fix corner case in `dead_code` (#3579)Alex Lam S.L
fixes #3578
2019-11-08enhance `dead_code` (#3575)Alex Lam S.L
2019-10-30fix corner case in `dead_code` (#3553)Alex Lam S.L
fixes #3552
2019-10-30enhance `dead_code` (#3551)Alex Lam S.L
2019-05-12fix corner case in `assignments` (#3407)Alex Lam S.L
fixes #3406
2019-04-24fix corner case in `unsafe` (#3380)Alex Lam S.L
2018-07-01fix corner case in `unused`alexlamsl
2018-02-18fix `dead_code` on exceptional `return` (#2930)Alex Lam S.L
fixes #2929
2018-02-01avoid `evaluate` of compound assignment after `dead_code` transform (#2861)Alex Lam S.L
fixes #2860
2018-01-19improve `unused` on built-in functions (#2817)Alex Lam S.L
2018-01-09patch variable declaractions extracted within `catch` (#2753)Alex Lam S.L
fixes #2749
2018-01-04forbid block-scoped `AST_Defun` in strict mode (#2718)Alex Lam S.L
2018-01-02scan within IIFEs of assigned values (#2702)Alex Lam S.L
fixes #2701
2017-12-30fix `dead_code` on escaped `return` assignment (#2693)Alex Lam S.L
fixes #2692
2017-12-27fix `dead_code` on `return` assignments (#2668)Alex Lam S.L
fixes #2666
2017-12-15fix `dead_code` on nested `try` (#2599)Alex Lam S.L
fixes #2597
2017-12-14improve `dead_code` tests (#2589)kzc
for #2588
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)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-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)Alex Lam S.L
fixes #2233
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)Alex Lam S.L
Technically not part of ES5, but commonly used code exists in the wild.
2017-05-14fix 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-12remove support for `const` (#1910)Alex Lam S.L
As this is not part of ES5.
2017-03-30optimize try-catch-finally (#1731)Alex Lam S.L
- eliminate empty blocks - flatten out if try-block does not throw
2017-03-19make `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-07avoid substitution of global variables (#1557)Alex Lam S.L
- unless `toplevel` is enabled - global `const` works as before