UglifyJS.git
4 years agospeed up `--reduce-test` via result caching (#3725)
Alex Lam S.L [Sat, 15 Feb 2020 22:43:34 +0000 (22:43 +0000)]
speed up `--reduce-test` via result caching (#3725)

4 years agoimprove `--reduce-test` (#3722)
kzc [Sat, 15 Feb 2020 20:22:33 +0000 (15:22 -0500)]
improve `--reduce-test` (#3722)

- hoist body of functions and IIFEs
- simplify var declarations

4 years agominor cleanup (#3723)
Alex Lam S.L [Sat, 15 Feb 2020 17:55:26 +0000 (17:55 +0000)]
minor cleanup (#3723)

4 years agoUpdated "Output options" > "comments" in README.md (#3717)
Marco Gonzalez [Sat, 15 Feb 2020 15:10:58 +0000 (07:10 -0800)]
Updated "Output options" > "comments" in README.md (#3717)

Expanded the current documentation to include:

- What the value of `"some"` means based on `lib/output.js`.
- Information about the `Function` overload parameters and expected output.

4 years agoenhance `properties` (#3721)
Alex Lam S.L [Sat, 15 Feb 2020 13:04:44 +0000 (13:04 +0000)]
enhance `properties` (#3721)

4 years agoworkaround RegExp formatting bugs (#3720)
Alex Lam S.L [Sat, 15 Feb 2020 05:26:48 +0000 (05:26 +0000)]
workaround RegExp formatting bugs (#3720)

4 years agoimprove `--reduce-test` (#3719)
Alex Lam S.L [Fri, 14 Feb 2020 02:47:20 +0000 (02:47 +0000)]
improve `--reduce-test` (#3719)

- cover missing cases when eliminating unreferenced labels
- format multi-line outputs correctly

4 years agoimprove code reuse (#3718)
Alex Lam S.L [Thu, 13 Feb 2020 05:16:10 +0000 (05:16 +0000)]
improve code reuse (#3718)

4 years agofix corner case in `unused` (#3716)
Alex Lam S.L [Wed, 12 Feb 2020 23:46:16 +0000 (23:46 +0000)]
fix corner case in `unused` (#3716)

4 years agoincrease mocha `--reduce-test` timeout (#3715)
Alex Lam S.L [Wed, 12 Feb 2020 02:25:04 +0000 (02:25 +0000)]
increase mocha `--reduce-test` timeout (#3715)

4 years agoenhance `evaluate` (#3714)
Alex Lam S.L [Wed, 12 Feb 2020 01:01:17 +0000 (01:01 +0000)]
enhance `evaluate` (#3714)

4 years agoadd test for `--reduce-test` (#3712)
Alex Lam S.L [Sun, 9 Feb 2020 23:21:46 +0000 (23:21 +0000)]
add test for `--reduce-test` (#3712)

4 years agoimprove test reduction (#3711)
Alex Lam S.L [Sun, 9 Feb 2020 20:42:36 +0000 (20:42 +0000)]
improve test reduction (#3711)

- scan `AST_SymbolFunarg`
- scan `console.log(...)`

4 years agoimprove `test/reduce` (#3710)
Alex Lam S.L [Sun, 9 Feb 2020 08:07:55 +0000 (08:07 +0000)]
improve `test/reduce` (#3710)

- suppress several instances of malformed AST generation
- improve resilience & reporting against malformed ASTs

4 years agofix corner cases in `test/reduce` (#3709)
Alex Lam S.L [Fri, 7 Feb 2020 02:41:07 +0000 (02:41 +0000)]
fix corner cases in `test/reduce` (#3709)

4 years agoimprove reduction of `AST_BlockStatement` (#3708)
Alex Lam S.L [Thu, 6 Feb 2020 21:20:05 +0000 (21:20 +0000)]
improve reduction of `AST_BlockStatement` (#3708)

4 years agoexport missing API for AST manipulation (#3707)
Alex Lam S.L [Thu, 6 Feb 2020 18:46:25 +0000 (18:46 +0000)]
export missing API for AST manipulation (#3707)

4 years agoimplement CLI `--reduce-test` and reduce tests in ufuzz (#3705)
kzc [Thu, 6 Feb 2020 02:50:59 +0000 (21:50 -0500)]
implement CLI `--reduce-test` and reduce tests in ufuzz (#3705)

4 years agofix corner case in `ie8` & `reduce_vars` (#3706)
Alex Lam S.L [Wed, 5 Feb 2020 20:03:22 +0000 (20:03 +0000)]
fix corner case in `ie8` & `reduce_vars` (#3706)

fixes #3703

4 years agofix corner case in `sequences` (#3704)
Alex Lam S.L [Tue, 4 Feb 2020 04:57:32 +0000 (04:57 +0000)]
fix corner case in `sequences` (#3704)

fixes #3703

4 years agov3.7.7
Alex Lam S.L [Sun, 2 Feb 2020 00:24:50 +0000 (00:24 +0000)]
v3.7.7

4 years agofix corner case in `collapse_vars` (#3701)
Alex Lam S.L [Thu, 30 Jan 2020 01:04:44 +0000 (09:04 +0800)]
fix corner case in `collapse_vars` (#3701)

fixes #3700

4 years agofix corner case in `collapse_vars` (#3699)
Alex Lam S.L [Wed, 29 Jan 2020 16:08:53 +0000 (00:08 +0800)]
fix corner case in `collapse_vars` (#3699)

fixes #3698

4 years agoenhance `collapse_vars` (#3697)
Alex Lam S.L [Wed, 29 Jan 2020 00:52:20 +0000 (08:52 +0800)]
enhance `collapse_vars` (#3697)

4 years agofix corner case in sign propagation (#3696)
Alex Lam S.L [Tue, 28 Jan 2020 14:44:18 +0000 (22:44 +0800)]
fix corner case in sign propagation (#3696)

- migrate de-facto functionality to `evaluate`

fixes #3695

4 years agoenhance `conditionals` (#3694)
Alex Lam S.L [Tue, 28 Jan 2020 04:33:21 +0000 (12:33 +0800)]
enhance `conditionals` (#3694)

4 years agoenhance `sequences` (#3693)
Alex Lam S.L [Tue, 28 Jan 2020 01:58:01 +0000 (09:58 +0800)]
enhance `sequences` (#3693)

4 years agofix corner case in string concatenations (#3692)
Alex Lam S.L [Mon, 27 Jan 2020 23:33:11 +0000 (07:33 +0800)]
fix corner case in string concatenations (#3692)

- migrate de-facto compression to `conditionals` & `strings`

fixes #3689

4 years agofix corner case in `booleans` (#3691)
Alex Lam S.L [Mon, 27 Jan 2020 18:04:44 +0000 (02:04 +0800)]
fix corner case in `booleans` (#3691)

fixes #3690

4 years agov3.7.6
Alex Lam S.L [Sun, 19 Jan 2020 11:02:58 +0000 (11:02 +0000)]
v3.7.6

4 years agofix corner case in `evaluate` (#3685)
Alex Lam S.L [Wed, 15 Jan 2020 17:51:37 +0000 (01:51 +0800)]
fix corner case in `evaluate` (#3685)

fixes #3684

4 years agofix corner case in `unsafe_math` (#3683)
Alex Lam S.L [Tue, 14 Jan 2020 20:05:58 +0000 (04:05 +0800)]
fix corner case in `unsafe_math` (#3683)

fixes #3682

4 years agov3.7.5
Alex Lam S.L [Sun, 12 Jan 2020 03:12:11 +0000 (11:12 +0800)]
v3.7.5

4 years agoenhance `collapse_vars` (#3680)
Alex Lam S.L [Thu, 9 Jan 2020 20:28:43 +0000 (04:28 +0800)]
enhance `collapse_vars` (#3680)

closes #3679

4 years agointroduce `--output-opts` CLI option (#3678)
Alex Lam S.L [Wed, 8 Jan 2020 12:44:03 +0000 (20:44 +0800)]
introduce `--output-opts` CLI option (#3678)

closes #3675

4 years agofix corner case in `unsafe_math` (#3677)
Alex Lam S.L [Wed, 8 Jan 2020 02:28:10 +0000 (10:28 +0800)]
fix corner case in `unsafe_math` (#3677)

fixes #3676

4 years agofix corner case in `unused` (#3674)
Alex Lam S.L [Tue, 7 Jan 2020 12:06:25 +0000 (20:06 +0800)]
fix corner case in `unused` (#3674)

fixes #3673

4 years agofix corner case in `collapse_vars` (#3672)
Alex Lam S.L [Tue, 7 Jan 2020 11:34:16 +0000 (19:34 +0800)]
fix corner case in `collapse_vars` (#3672)

fixes #3671

4 years agov3.7.4
Alex Lam S.L [Mon, 6 Jan 2020 23:59:54 +0000 (07:59 +0800)]
v3.7.4

4 years agoimprove `ufuzz` false positive detection (#3670)
Alex Lam S.L [Mon, 6 Jan 2020 03:26:15 +0000 (11:26 +0800)]
improve `ufuzz` false positive detection (#3670)

4 years agofix corner case in `conditionals` (#3669)
Alex Lam S.L [Sat, 4 Jan 2020 01:24:28 +0000 (09:24 +0800)]
fix corner case in `conditionals` (#3669)

fixes #3668

4 years agofix corner case in `reduce_vars` (#3667)
Alex Lam S.L [Fri, 3 Jan 2020 11:28:47 +0000 (19:28 +0800)]
fix corner case in `reduce_vars` (#3667)

fixes #3666

4 years agofix corner case in `unused` (#3665)
Alex Lam S.L [Wed, 1 Jan 2020 12:24:30 +0000 (20:24 +0800)]
fix corner case in `unused` (#3665)

fixes #3664

4 years agoenhance `unused` (#3662)
Alex Lam S.L [Tue, 31 Dec 2019 15:39:24 +0000 (23:39 +0800)]
enhance `unused` (#3662)

4 years agoenhance `booleans` (#3661)
Alex Lam S.L [Tue, 31 Dec 2019 05:10:05 +0000 (13:10 +0800)]
enhance `booleans` (#3661)

4 years agoenhance `evaluate` (#3660)
Alex Lam S.L [Tue, 31 Dec 2019 03:51:21 +0000 (11:51 +0800)]
enhance `evaluate` (#3660)

4 years agofix corner case in `booleans` (#3659)
Alex Lam S.L [Tue, 31 Dec 2019 01:57:35 +0000 (09:57 +0800)]
fix corner case in `booleans` (#3659)

fixes #3658

4 years agoenhance `booleans` (#3657)
Alex Lam S.L [Mon, 30 Dec 2019 14:41:11 +0000 (22:41 +0800)]
enhance `booleans` (#3657)

4 years agofix corner case in `evaluate` (#3656)
Alex Lam S.L [Sun, 29 Dec 2019 13:16:53 +0000 (21:16 +0800)]
fix corner case in `evaluate` (#3656)

fixes #3655

4 years agofix corner case in `evaluate` (#3654)
Alex Lam S.L [Sun, 29 Dec 2019 02:50:57 +0000 (02:50 +0000)]
fix corner case in `evaluate` (#3654)

fixes #3653

4 years agofix corner case in `collapse_vars` (#3652)
Alex Lam S.L [Sun, 29 Dec 2019 00:57:59 +0000 (00:57 +0000)]
fix corner case in `collapse_vars` (#3652)

fixes #3651

4 years agoworkaround firefox asm.js quirks (#3650)
Alex Lam S.L [Sat, 28 Dec 2019 23:14:53 +0000 (23:14 +0000)]
workaround firefox asm.js quirks (#3650)

fixes #3636

4 years agoenhance `evaluate` (#3649)
Alex Lam S.L [Sat, 28 Dec 2019 20:26:15 +0000 (20:26 +0000)]
enhance `evaluate` (#3649)

4 years agoimprove unicode handling (#3648)
Alex Lam S.L [Sat, 28 Dec 2019 18:06:51 +0000 (18:06 +0000)]
improve unicode handling (#3648)

4 years agoincrease mocha default timeout (#3647)
Alex Lam S.L [Sat, 28 Dec 2019 02:32:22 +0000 (02:32 +0000)]
increase mocha default timeout (#3647)

closes #3640

4 years agofix corner case in `unsafe` (#3646)
Alex Lam S.L [Fri, 27 Dec 2019 14:24:54 +0000 (14:24 +0000)]
fix corner case in `unsafe` (#3646)

4 years agov3.7.3
Alex Lam S.L [Thu, 26 Dec 2019 22:11:29 +0000 (06:11 +0800)]
v3.7.3

4 years agofix corner case in `directives` (#3645)
Alex Lam S.L [Wed, 25 Dec 2019 00:55:39 +0000 (00:55 +0000)]
fix corner case in `directives` (#3645)

4 years agoenhance `conditionals` (#3643)
Alex Lam S.L [Sun, 22 Dec 2019 04:29:32 +0000 (04:29 +0000)]
enhance `conditionals` (#3643)

4 years agofix corner case in `collapse_vars` (#3642)
Alex Lam S.L [Sun, 22 Dec 2019 01:08:56 +0000 (01:08 +0000)]
fix corner case in `collapse_vars` (#3642)

fixes #3641

4 years agosuppress false positives from fuzzer (#3638)
Alex Lam S.L [Mon, 16 Dec 2019 15:32:47 +0000 (17:32 +0200)]
suppress false positives from fuzzer (#3638)

4 years agofix corner case in `loops` (#3635)
Alex Lam S.L [Tue, 10 Dec 2019 22:39:46 +0000 (06:39 +0800)]
fix corner case in `loops` (#3635)

fixes #3634

4 years agoenhance `loops` (#3633)
Alex Lam S.L [Tue, 10 Dec 2019 12:57:47 +0000 (12:57 +0000)]
enhance `loops` (#3633)

4 years agofix corner case in `reduce_vars` (#3632)
Alex Lam S.L [Tue, 10 Dec 2019 09:45:51 +0000 (09:45 +0000)]
fix corner case in `reduce_vars` (#3632)

fixes #3631

4 years agov3.7.2
Alex Lam S.L [Sun, 8 Dec 2019 15:36:18 +0000 (15:36 +0000)]
v3.7.2

4 years agofix corner case in `collapse_vars` (#3629)
Alex Lam S.L [Wed, 4 Dec 2019 21:08:37 +0000 (05:08 +0800)]
fix corner case in `collapse_vars` (#3629)

fixes #3628

4 years agoavoid collision with HTML comments (#3625)
Alex Lam S.L [Wed, 4 Dec 2019 18:43:25 +0000 (02:43 +0800)]
avoid collision with HTML comments (#3625)

fixes #3624

4 years agofix corner case in `collapse_vars` (#3627)
Alex Lam S.L [Wed, 4 Dec 2019 16:59:57 +0000 (00:59 +0800)]
fix corner case in `collapse_vars` (#3627)

fixes #3626

4 years agofix corner case in `reduce_vars` (#3623)
Alex Lam S.L [Wed, 4 Dec 2019 12:24:55 +0000 (20:24 +0800)]
fix corner case in `reduce_vars` (#3623)

fixes #3622

4 years agoenhance `collapse_vars` (#3621)
Alex Lam S.L [Mon, 2 Dec 2019 07:25:38 +0000 (15:25 +0800)]
enhance `collapse_vars` (#3621)

4 years agofix corner case in `keep_fargs` (#3620)
Alex Lam S.L [Mon, 2 Dec 2019 04:28:17 +0000 (12:28 +0800)]
fix corner case in `keep_fargs` (#3620)

fixes #3619

4 years agofix corner cases in `keep_fargs` & `unused` (#3618)
Alex Lam S.L [Sun, 1 Dec 2019 22:43:54 +0000 (06:43 +0800)]
fix corner cases in `keep_fargs` & `unused` (#3618)

4 years agoenhance `unused` (#3617)
Alex Lam S.L [Sun, 1 Dec 2019 10:10:37 +0000 (18:10 +0800)]
enhance `unused` (#3617)

4 years agoenhance `collapse_vars` (#3616)
Alex Lam S.L [Sat, 30 Nov 2019 18:31:04 +0000 (02:31 +0800)]
enhance `collapse_vars` (#3616)

4 years agov3.7.1
Alex Lam S.L [Fri, 29 Nov 2019 22:02:09 +0000 (06:02 +0800)]
v3.7.1

4 years agofix corner case in parsing directives (#3615)
Alex Lam S.L [Fri, 29 Nov 2019 10:57:29 +0000 (18:57 +0800)]
fix corner case in parsing directives (#3615)

4 years agoenhance `collapse_vars` (#3613)
Alex Lam S.L [Fri, 29 Nov 2019 09:45:49 +0000 (17:45 +0800)]
enhance `collapse_vars` (#3613)

4 years agoenhance `assignments` (#3612)
Alex Lam S.L [Wed, 27 Nov 2019 23:40:34 +0000 (07:40 +0800)]
enhance `assignments` (#3612)

4 years agoenhance `collapse_vars` (#3611)
Alex Lam S.L [Wed, 27 Nov 2019 19:57:10 +0000 (03:57 +0800)]
enhance `collapse_vars` (#3611)

4 years agofix corner case in `unsafe_regexp` (#3609)
Alex Lam S.L [Wed, 27 Nov 2019 09:35:21 +0000 (17:35 +0800)]
fix corner case in `unsafe_regexp` (#3609)

4 years agofix corner case in `inline` (#3608)
Alex Lam S.L [Wed, 27 Nov 2019 06:54:36 +0000 (14:54 +0800)]
fix corner case in `inline` (#3608)

4 years agouse stable Node.js version for fuzzing (#3605)
Alex Lam S.L [Mon, 25 Nov 2019 18:11:11 +0000 (02:11 +0800)]
use stable Node.js version for fuzzing (#3605)

4 years agoinline functions with directives more effectively (#3604)
Alex Lam S.L [Mon, 25 Nov 2019 17:51:04 +0000 (01:51 +0800)]
inline functions with directives more effectively (#3604)

4 years agoenhance `unsafe_math` (#3603)
Alex Lam S.L [Mon, 25 Nov 2019 13:14:13 +0000 (21:14 +0800)]
enhance `unsafe_math` (#3603)

4 years agoenhance collapse_vars (#3602)
Alex Lam S.L [Wed, 20 Nov 2019 04:54:49 +0000 (12:54 +0800)]
enhance collapse_vars (#3602)

4 years agofix corner case in `if_return` (#3601)
Alex Lam S.L [Tue, 19 Nov 2019 07:45:20 +0000 (15:45 +0800)]
fix corner case in `if_return` (#3601)

fixes #3600

4 years agofix corner case in `unused` (#3599)
Alex Lam S.L [Mon, 18 Nov 2019 20:26:41 +0000 (04:26 +0800)]
fix corner case in `unused` (#3599)

fixes #3598

4 years agofix corner case in `collapse_vars` (#3597)
Alex Lam S.L [Mon, 18 Nov 2019 18:30:52 +0000 (02:30 +0800)]
fix corner case in `collapse_vars` (#3597)

fixes #3596

4 years agov3.7.0
Alex Lam S.L [Mon, 18 Nov 2019 12:21:07 +0000 (20:21 +0800)]
v3.7.0

4 years agofix corner case in `inline` (#3595)
Alex Lam S.L [Mon, 18 Nov 2019 07:04:55 +0000 (15:04 +0800)]
fix corner case in `inline` (#3595)

4 years agofix corner case in `unsafe_math` (#3594)
Alex Lam S.L [Mon, 18 Nov 2019 05:44:13 +0000 (13:44 +0800)]
fix corner case in `unsafe_math` (#3594)

fixes #3593

4 years agofix corner case in `reduce_funcs` (#3592)
Alex Lam S.L [Sun, 17 Nov 2019 03:19:42 +0000 (11:19 +0800)]
fix corner case in `reduce_funcs` (#3592)

4 years agofix corner case in `collapse_vars` (#3591)
Alex Lam S.L [Sat, 16 Nov 2019 21:24:02 +0000 (05:24 +0800)]
fix corner case in `collapse_vars` (#3591)

4 years agocompress empty for-in loops (#3590)
Alex Lam S.L [Sat, 16 Nov 2019 18:36:42 +0000 (02:36 +0800)]
compress empty for-in loops (#3590)

4 years agorefine precision limits on `unsafe_math` (#3589)
Alex Lam S.L [Sat, 16 Nov 2019 17:16:42 +0000 (01:16 +0800)]
refine precision limits on `unsafe_math` (#3589)

4 years agointroduce eager evaluation (#3587)
Alex Lam S.L [Fri, 15 Nov 2019 22:10:47 +0000 (06:10 +0800)]
introduce eager evaluation (#3587)

4 years agominor clean-ups (#3588)
Alex Lam S.L [Fri, 15 Nov 2019 16:40:22 +0000 (00:40 +0800)]
minor clean-ups (#3588)

4 years agomigrate to GitHub Actions (#3586)
Alex Lam S.L [Wed, 13 Nov 2019 19:36:23 +0000 (03:36 +0800)]
migrate to GitHub Actions (#3586)

4 years agofix corner case in `switches` (#3585)
Alex Lam S.L [Wed, 13 Nov 2019 18:29:55 +0000 (02:29 +0800)]
fix corner case in `switches` (#3585)

4 years agoenhance `unused` (#3584)
Alex Lam S.L [Wed, 13 Nov 2019 13:44:44 +0000 (21:44 +0800)]
enhance `unused` (#3584)