Alex Lam S.L
99946a3993
fix corner case in dead_code ( #5507 )
...
fixes #5506
2022-06-12 05:26:51 +08:00
Alex Lam S.L
fdcc6d3a9c
fix corner case in dead_code ( #5107 )
...
fixes #5106
2021-08-06 08:35:11 +08:00
Alex Lam S.L
7cbcd11440
fix corner case in dead_code ( #5031 )
...
fixes #5030
2021-06-23 22:56:28 +08:00
Alex Lam S.L
fd8dec61ad
enhance dead_code ( #5014 )
2021-06-20 15:30:04 +08:00
Alex Lam S.L
ac26993b5a
fix corner cases with block-scoped functions ( #4695 )
2021-02-27 04:16:14 +08:00
Alex Lam S.L
90ec468240
fix corner case in dead_code ( #4571 )
...
fixes #4570
2021-01-19 09:33:57 +08:00
Alex Lam S.L
0417a69c3e
enhance collapse_vars & dead_code ( #4491 )
2021-01-01 21:52:14 +08:00
Alex Lam S.L
8c000033d3
clarify corner case in object literal ( #4371 )
...
closes #4366
2020-12-12 07:42:29 +08:00
Alex Lam S.L
79e5c3f564
improve warnings ( #4247 )
...
closes #4244
2020-10-27 17:39:33 +08:00
Alex Lam S.L
55451e7b78
support const ( #4190 )
2020-10-12 01:18:57 +08:00
Alex Lam S.L
23f0dca992
fix corner cases in collapse_vars & dead_code ( #4052 )
...
fixes #4051
2020-08-17 05:54:27 +08:00
Alex Lam S.L
a82ca62b66
fix corner case in dead_code ( #3991 )
2020-06-12 08:00:19 +08:00
Alex Lam S.L
e9465717ab
enhance dead_code ( #3990 )
2020-06-12 02:16:13 +08:00
Alex Lam S.L
cd55eeb77c
fix corner case in dead_code ( #3969 )
...
fixes #3967
2020-06-08 13:42:09 +08:00
Alex Lam S.L
60c0bc1e6b
fix corner case in evaluate ( #3934 )
...
fixes #3933
2020-05-29 17:48:26 +08:00
Alex Lam S.L
87046410ef
enhance dead_code ( #3907 )
2020-05-19 03:53:08 +08:00
Alex Lam S.L
34ead0430b
enhance dead_code ( #3849 )
2020-05-06 05:02:35 +08:00
Alex Lam S.L
d900006973
fix corner case in dead_code ( #3831 )
...
fixes #3830
2020-04-30 21:52:57 +08:00
Alex Lam S.L
01b13d797c
enhance dead_code ( #3811 )
2020-04-22 18:22:45 +08:00
Alex Lam S.L
e9e76dcf04
fix corner case in string concatenations ( #3692 )
...
- migrate de-facto compression to `conditionals` & `strings`
fixes #3689
2020-01-28 07:33:11 +08:00
Alex Lam S.L
a19d31dd33
fix corner case in unsafe ( #3646 )
2019-12-27 14:24:54 +00:00
Alex Lam S.L
d6fd18d0b0
enhance evaluate & inline ( #3580 )
2019-11-13 04:17:09 +08:00
Alex Lam S.L
5b20bad4b3
fix corner case in dead_code ( #3579 )
...
fixes #3578
2019-11-12 05:16:14 +08:00
Alex Lam S.L
10648c9af6
enhance dead_code ( #3575 )
2019-11-08 13:45:28 +08:00
Alex Lam S.L
ec7f071272
fix corner case in dead_code ( #3553 )
...
fixes #3552
2019-10-30 14:21:22 +08:00
Alex Lam S.L
f1eb03f2c0
enhance dead_code ( #3551 )
2019-10-30 06:34:54 +08:00
Alex Lam S.L
54cb678055
fix corner case in assignments ( #3407 )
...
fixes #3406
2019-05-12 03:52:46 +08:00
Alex Lam S.L
d3b93ec682
fix corner case in unsafe ( #3380 )
2019-04-24 22:21:28 +08:00
alexlamsl
5ffc17d4aa
fix corner case in unused
2018-07-01 14:34:42 +08:00
Alex Lam S.L
2351a672ea
fix dead_code on exceptional return ( #2930 )
...
fixes #2929
2018-02-18 04:36:00 +08:00
Alex Lam S.L
aa664dea0a
avoid evaluate of compound assignment after dead_code transform ( #2861 )
...
fixes #2860
2018-02-01 16:18:29 +08:00
Alex Lam S.L
3e7873217c
improve unused on built-in functions ( #2817 )
2018-01-19 20:41:57 +08:00
Alex Lam S.L
2972d58dbb
patch variable declaractions extracted within catch ( #2753 )
...
fixes #2749
2018-01-09 13:54:35 +08:00
Alex Lam S.L
a6873a3859
forbid block-scoped AST_Defun in strict mode ( #2718 )
2018-01-04 18:45:51 +08:00
Alex Lam S.L
2f3bddbaca
scan within IIFEs of assigned values ( #2702 )
...
fixes #2701
2018-01-02 01:24:23 +08:00
Alex Lam S.L
ed7a0a454e
fix dead_code on escaped return assignment ( #2693 )
...
fixes #2692
2017-12-30 15:20:25 +08:00
Alex Lam S.L
f30790b11b
fix dead_code on return assignments ( #2668 )
...
fixes #2666
2017-12-27 07:40:34 +08:00
Alex Lam S.L
7d6907cb99
fix dead_code on nested try ( #2599 )
...
fixes #2597
2017-12-15 19:41:28 +08:00
kzc
d18979bb23
improve dead_code tests ( #2589 )
...
for #2588
2017-12-14 12:12:06 +08:00
Alex Lam S.L
8266993c6e
fix dead_code on return/throw within try ( #2588 )
2017-12-14 04:38:21 +08:00
Alex Lam S.L
9a137e8613
drop local assign-only variable in return ( #2587 )
2017-12-14 02:59:59 +08:00
Alex Lam S.L
5a1e99d713
improve compression of if conditions ( #2544 )
2017-12-01 06:18:31 +08:00
Alex Lam S.L
b762f2d6f4
improve compression of loop conditions ( #2543 )
2017-12-01 05:52:33 +08:00
Alex Lam S.L
3c74047368
implement 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 #2464
2017-11-11 05:59:35 +08:00
Alex Lam S.L
aacf3edc68
extend unsafe on pure global functions ( #2303 )
2017-09-07 22:08:34 +08:00
kzc
8b89072190
add Date and other known globals to unsafe compress option ( #2302 )
2017-09-07 02:44:26 +08:00
Alex Lam S.L
a5ffe2c23f
drop unused builtin globals under unsafe ( #2236 )
...
fixes #2233
2017-07-15 15:16:11 +08:00
Alex Lam S.L
79131cd647
extend node_version range on applicable tests ( #2015 )
2017-05-27 22:18:28 +08:00
Alex Lam S.L
dc33facfcb
fix dead_code on block-scoped function under "use strict" ( #2006 )
...
Technically not part of ES5, but commonly used code exists in the wild.
2017-05-26 16:08:51 +08:00
Alex Lam S.L
3ca902258c
fix 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 errors
2017-05-14 02:10:34 +08:00