Alex Lam S.L
caa92aea5d
fix corner case in merge_vars ( #4289 )
...
fixes #4288
2020-11-18 04:03:20 +08:00
Alex Lam S.L
e5f80afc53
support destructured literals ( #4278 )
2020-11-17 08:01:24 +08:00
Alex Lam S.L
91fc1c82b5
support computed property name in object literal ( #4268 )
2020-11-08 23:38:32 +08:00
Alex Lam S.L
79e5c3f564
improve warnings ( #4247 )
...
closes #4244
2020-10-27 17:39:33 +08:00
Alex Lam S.L
96bf7fceab
support let ( #4227 )
2020-10-19 08:32:39 +08:00
Alex Lam S.L
55451e7b78
support const ( #4190 )
2020-10-12 01:18:57 +08:00
Alex Lam S.L
bc6e105174
fix corner case in ie8 ( #4187 )
...
fixes #4186
2020-10-06 09:20:41 +08:00
Alex Lam S.L
220dc95c0d
clean up scope-related variables ( #4179 )
2020-10-05 06:56:52 +08:00
Alex Lam S.L
8f0521d51d
retrofit try-catch-finally as block-scoped ( #4178 )
...
- support optional catch binding
2020-10-05 05:30:14 +08:00
Alex Lam S.L
f9946767c9
retrofit AST_BlockStatement as block-scoped ( #4177 )
2020-10-05 01:58:50 +08:00
Alex Lam S.L
ccd91b9952
retrofit catch as block-scoped ( #4165 )
2020-10-02 23:29:58 +08:00
Alex Lam S.L
a9d934ab4e
improve handling of switch statements ( #4114 )
2020-09-17 03:12:08 +08:00
Alex Lam S.L
09525c7530
fix corner case in sequences ( #4073 )
2020-08-26 01:26:49 +08:00
Alex Lam S.L
7dc61cdc89
tidy up various interfaces ( #4066 )
2020-08-24 04:39:38 +08:00
Alex Lam S.L
af13f8dd2c
improve diagnostics upon AST validation failure ( #4033 )
2020-07-31 22:50:16 +08:00
Alex Lam S.L
88423f2574
validate against multiple parents on AST_Node ( #4032 )
...
- fix related issues in `global_defs`, `ie8` & `reduce_vars`
2020-07-31 08:09:19 +08:00
Alex Lam S.L
abb8ae02a5
improve inline of /*@__PURE__*/ calls ( #3865 )
2020-05-10 07:16:09 +08:00
Alex Lam S.L
97728c4f0b
improve AST validation ( #3864 )
2020-05-10 05:25:44 +08:00
Alex Lam S.L
f74b7f7401
implement AST validation ( #3863 )
2020-05-09 09:58:03 +08:00
kzc
b656f7c083
remove unused returns from tree walk ( #3850 )
2020-05-06 02:21:36 +08:00
Alex Lam S.L
873db281e8
improve TreeWalker performance ( #3848 )
2020-05-05 22:45:58 +08:00
Alex Lam S.L
6bf1486935
update links to repository after rename ( #3847 )
2020-05-05 21:07:33 +08:00
Alex Lam S.L
5315dd95b0
minor cleanup ( #3723 )
2020-02-15 17:55:26 +00:00
Alex Lam S.L
551420132c
export missing API for AST manipulation ( #3707 )
2020-02-06 18:46:25 +00:00
Alex Lam S.L
99ac73a635
enhance booleans ( #3661 )
2019-12-31 13:10:05 +08:00
Alex Lam S.L
94785e8e14
fix corner case in booleans ( #3659 )
...
fixes #3658
2019-12-31 09:57:35 +08:00
Alex Lam S.L
d9cd3d33c8
enhance evaluate ( #3649 )
2019-12-28 20:26:15 +00:00
Alex Lam S.L
eba3a37bb5
fix boolean context detection ( #3466 )
...
fixes #3465
2019-10-12 03:42:57 +08:00
Alex Lam S.L
33c94d3bd9
detect boolean context across IIFEs ( #3461 )
2019-10-10 09:37:02 +08:00
Alex Lam S.L
a0d4b648bb
remove extraneous property ( #3459 )
...
fixes #3455
2019-10-10 01:36:58 +08:00
Alex Lam S.L
2e4fbdeb08
enhance keep_fargs ( #3409 )
2019-05-13 21:58:04 +08:00
Alex Lam S.L
354fec8a9c
make enclose & wrap work with sourceMap ( #3396 )
...
fixes #3313
2019-05-04 20:25:52 +08:00
Alex Lam S.L
2ea96549c5
unify logging functionality ( #3392 )
...
fixes #3253
fixes #3254
2019-04-30 06:32:24 +08:00
Alex Lam S.L
a84beafd1b
fix corner case in assignments ( #3376 )
...
fixes #3375
2019-04-24 02:50:15 +08:00
Alex Lam S.L
304db15a20
fix corner case in ie8 & rename ( #3223 )
2018-07-26 16:35:43 +08:00
alexlamsl
5ffc17d4aa
fix corner case in unused
2018-07-01 14:34:42 +08:00
Alex Lam S.L
9e19e63551
general clean-ups ( #3175 )
2018-06-06 17:50:56 +08:00
Jiavan
b39043f3ab
re-introduce enclose ( #3163 )
...
fixes #2443
2018-06-01 16:47:11 +08:00
Alex Lam S.L
24d9633a35
fix corner cases with eval() ( #3147 )
...
fixes #3146
2018-05-24 14:29:30 +08:00
Alex Lam S.L
a0ca595c2c
fix TreeWalker scan order ( #3114 )
...
fixes #3113
2018-05-03 00:27:45 +08:00
Alex Lam S.L
ccf0e2ef4f
extend fuzzy RHS folding ( #3006 )
...
- `a = []; if (1) x();` => `if (a = []) x();`
2018-03-17 03:10:21 +08:00
Alex Lam S.L
b29d435bb5
refactor brackets to braces ( #3005 )
2018-03-15 15:46:45 +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
07e4b64f3a
fix AST_Scope.clone() ( #2803 )
...
fixes #2799
2018-01-17 21:33:13 +08:00
Alex Lam S.L
b4aef753e7
general improvements around AST_ForIn ( #2796 )
...
- compress using `collapse_vars`
- remove unused `name`
- simplify `loop_body`
2018-01-16 17:03:12 +08:00
Alex Lam S.L
edb4e3bd52
make comments output more robust ( #2633 )
...
- improve handling of comments right after `return`
- retain comments after `OutputStream`
- preserve trailing comments
- fix handling of new line before comments
- handle comments around parentheses
fixes #88
fixes #112
fixes #218
fixes #372
fixes #2629
2017-12-22 04:59:54 +08:00
Alex Lam S.L
172079a47f
improve code reuse ( #2542 )
2017-12-01 03:40:46 +08:00
Alex Lam S.L
ae28a24c7f
fix cross-scope inlining of AST_Functions ( #2486 )
...
fixes #2485
2017-11-16 10:04:30 +08:00
Alex Lam S.L
00f509405b
suppress collapse_vars of this into "use strict" ( #2326 )
...
fixes #2319
2017-09-20 05:23:20 +08:00
Alex Lam S.L
6b3aeff1d8
clean up TreeWalker.pop() ( #2195 )
...
Remove superfluous parameter.
2017-07-03 03:23:38 +08:00