Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-04-02 | fix corner cases in switch and undefined (#1762) | Alex Lam S.L | |
- fix side effects in switch condition for singular blocks - fix `undefined` confusion with local variable - gate `OPT(AST_Switch)` with `switches` fixes #1758 fixes #1759 | |||
2017-03-29 | improve beautified output of switch blocks (#1721) | Alex Lam S.L | |
2017-03-28 | fix tail trimming of switch blocks (#1707) | Alex Lam S.L | |
now guarded under `dead_code` fixes #1705 | |||
2017-03-27 | `has_side_effects()` should take `AST_Switch.expression` into account (#1699) | Alex Lam S.L | |
fixes #1698 | |||
2017-03-27 | fix typeof side effects (#1696) | Alex Lam S.L | |
`statement_to_expression()` drops `typeof` even if it operates on undeclared variables. Since we now have `drop_side_effect_free()`, replace and remove this deprecated functionality. | |||
2017-03-27 | preserve side effects in switch expression (#1694) | Alex Lam S.L | |
fixes #1690 | |||
2017-03-26 | fallthrough should not execute case expression (#1683) | Alex Lam S.L | |
- de-duplicate trailing cases only, avoid all potential side-effects - enable switch statement fuzzing fixes #1680 | |||
2017-03-26 | suppress switch branch de-duplication upon side effects (#1682) | Alex Lam S.L | |
fixes #1679 | |||
2017-03-26 | improve switch optimisations (#1677) | Alex Lam S.L | |
- correctly determine reachability of (default) branches - gracefully handle multiple default branches - optimise branches with duplicate bodies fixes #376 fixes #441 fixes #1674 | |||
2017-03-25 | fix `dead_code` on `AST_Switch` (#1667) | Alex Lam S.L | |
Need to call `extract_declarations_from_unreachable_code()`. fixes #1663 | |||
2013-03-01 | Drop last `default:` if it's the last branch and empty | Mihai Bazon | |
Close #141 | |||
2012-11-14 | better solution for the last test in constant switch folding | Mihai Bazon | |
2012-11-14 | optimize constant switch blocks | Mihai Bazon | |
ref. mishoo/UglifyJS#441 |