Alex Lam S.L
e24b255350
implement keep_fargs for mangle ( #5307 )
...
closes #4657
2022-01-21 05:13:26 +08:00
Alex Lam S.L
3ee1b0d00d
enhance hoist_props & reduce_vars ( #5183 )
...
closes #5182
2021-11-23 00:31:10 +08:00
Alex Lam S.L
08391b8e1c
fix corner case in hoist_props ( #5069 )
2021-07-11 10:59:57 +08:00
Alex Lam S.L
d68d155f93
support class literals ( #4658 )
2021-02-23 22:55:08 +08:00
Alex Lam S.L
b18b70f63b
fix corner case in hoist_props ( #4307 )
2020-11-20 00:02:25 +08:00
Alex Lam S.L
1bc0df1569
fix corner case in hoist_props ( #4024 )
...
fixes #4023
2020-07-26 09:27:34 +08:00
Alex Lam S.L
a489f8cb5e
add test case for #3945 ( #3948 )
2020-06-03 03:34:38 +08:00
Alex Lam S.L
e2e4b7fb37
fix corner case in hoist_props ( #3947 )
...
fixes #3945
2020-06-02 23:51:06 +08:00
Alex Lam S.L
63adfb1590
fix corner case in hoist_props ( #3872 )
...
fixes #3871
2020-05-10 22:23:09 +08:00
Alex Lam S.L
c4c9c6d37d
fix corner case in hoist_props ( #3869 )
...
fixes #3868
2020-05-10 10:35:24 +01:00
Alex Lam S.L
0ce71bbec0
enhance join_vars ( #3783 )
2020-04-17 05:31:33 +08:00
Alex Lam S.L
d9cd3d33c8
enhance evaluate ( #3649 )
2019-12-28 20:26:15 +00:00
Alex Lam S.L
931ac66638
fix corner case in hoist_props ( #3452 )
...
fixes #3440
2019-10-06 10:29:13 +08:00
Alex Lam S.L
f87caac9d8
fix corner case in hoist_props ( #3412 )
...
fixes #3411
2019-05-14 19:12:00 +08:00
alexlamsl
5ffc17d4aa
fix corner case in unused
2018-07-01 14:34:42 +08:00
Alex Lam S.L
ba7069d52b
suppress hoist_props for embedded assignments ( #3074 )
2018-04-11 05:19:16 +08:00
Alex Lam S.L
4dd7d0e39b
extend hoist_props ( #3073 )
...
- handle `AST_Assign` the same way as `AST_VarDef`
- inject `AST_Var` as succeeding statement
fixes #3071
2018-04-11 02:48:15 +08:00
Alex Lam S.L
e67553fa55
fix tree traversal on AST_Do ( #3047 )
...
fixes #3046
2018-04-02 22:31:23 +08:00
Alex Lam S.L
12985d86c2
fix corner case in hoist_props ( #3022 )
...
fixes #3021
2018-03-23 07:27:35 +08:00
Alex Lam S.L
a75a046abb
compress arguments[index] ( #2967 )
...
- always replace with existing parameter
- only introduce new parameter if `keep_fargs` is disabled
2018-03-02 11:22:09 +08:00
Alex Lam S.L
082e004b87
compress undefined property names ( #2811 )
...
- enforce property names as string
- handle `void 0` as `undefined` in `hoist_props` & `reduce_vars`
2018-01-19 00:36:30 +08:00
Alex Lam S.L
8f681b1d17
handle inline of function arguments ( #2590 )
...
fixes #2476
2017-12-15 13:28:30 +08:00
Alex Lam S.L
206a54a746
fix nested hoist_props substitution ( #2523 )
...
fixes #2519
2017-11-28 14:39:00 +08:00
Alex Lam S.L
3b28b915eb
extend escape analysis on constant expression properties ( #2509 )
...
fixes #2508
2017-11-24 14:07:39 +08:00
Alex Lam S.L
2ac5086831
fix top_retain on hoist_props ( #2474 )
...
fixes #2473
2017-11-13 00:59:41 +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
a48f87abf2
compress new function containing this ( #2417 )
2017-10-30 23:19:27 +08:00
Alex Lam S.L
4178289c38
implement hoist_props ( #2396 )
...
fixes #2377
2017-10-25 03:38:11 +08:00