UglifyJS.git
4 years agofix corner case in `evaluate` & `unsafe_math` (#3756)
Alex Lam S.L [Mon, 30 Mar 2020 11:13:14 +0000 (12:13 +0100)]
fix corner case in `evaluate` & `unsafe_math` (#3756)

fixes #3755

4 years agoimprove resilience against nodejs.org failures (#3758)
Alex Lam S.L [Mon, 30 Mar 2020 02:20:13 +0000 (03:20 +0100)]
improve resilience against nodejs.org failures (#3758)

4 years agohandle single-field segments (#3757)
Alex Lam S.L [Sun, 29 Mar 2020 22:39:32 +0000 (23:39 +0100)]
handle single-field segments (#3757)

4 years agohandle `source-map` operations internally (#3754)
Alex Lam S.L [Sat, 28 Mar 2020 14:18:56 +0000 (14:18 +0000)]
handle `source-map` operations internally (#3754)

4 years agov3.8.1
Alex Lam S.L [Fri, 27 Mar 2020 17:04:40 +0000 (01:04 +0800)]
v3.8.1

4 years agofix line accounting in multi-line strings (#3752)
Alex Lam S.L [Fri, 20 Mar 2020 23:17:41 +0000 (23:17 +0000)]
fix line accounting in multi-line strings (#3752)

fixes #3748

4 years agoimprove `--reduce-test` (#3742)
Alex Lam S.L [Fri, 20 Mar 2020 21:50:41 +0000 (21:50 +0000)]
improve `--reduce-test` (#3742)

- ignore difference in error messages
- improve readability on trailing whitespace differences
- improve performance & quality via `console.log()` insertions

4 years agofix corner case in `evaluate` & `ie8` (#3751)
Alex Lam S.L [Fri, 20 Mar 2020 16:55:24 +0000 (00:55 +0800)]
fix corner case in `evaluate` & `ie8` (#3751)

fixes #3750

4 years agoimprove suspicious option detection (#3749)
Alex Lam S.L [Thu, 12 Mar 2020 20:03:47 +0000 (20:03 +0000)]
improve suspicious option detection (#3749)

4 years agofix corner case in `unused` (#3747)
Alex Lam S.L [Fri, 6 Mar 2020 18:27:42 +0000 (18:27 +0000)]
fix corner case in `unused` (#3747)

fixes #3746

4 years agofix corner case in `collapse_vars` (#3745)
Alex Lam S.L [Fri, 6 Mar 2020 18:27:06 +0000 (18:27 +0000)]
fix corner case in `collapse_vars` (#3745)

fixes #3744

4 years agospeed up CI (#3741)
Alex Lam S.L [Mon, 2 Mar 2020 14:07:30 +0000 (22:07 +0800)]
speed up CI (#3741)

4 years agoimprove AST fuzzing (#3740)
Alex Lam S.L [Mon, 2 Mar 2020 11:38:30 +0000 (19:38 +0800)]
improve AST fuzzing (#3740)

4 years agofix corner case in `evaluate` (#3739)
Alex Lam S.L [Sun, 1 Mar 2020 20:34:31 +0000 (20:34 +0000)]
fix corner case in `evaluate` (#3739)

fixes #3738

4 years agoavoid reducing setter argument (#3737)
Alex Lam S.L [Sun, 1 Mar 2020 05:04:21 +0000 (05:04 +0000)]
avoid reducing setter argument (#3737)

4 years agodetect `toplevel` option properly (#3735)
Alex Lam S.L [Sat, 29 Feb 2020 17:33:48 +0000 (17:33 +0000)]
detect `toplevel` option properly (#3735)

fixes #3730

4 years agofix corner case in `evaluate` (#3729)
Alex Lam S.L [Wed, 19 Feb 2020 00:41:10 +0000 (00:41 +0000)]
fix corner case in `evaluate` (#3729)

4 years agofix corner case in `evaluate` (#3728)
Alex Lam S.L [Tue, 18 Feb 2020 19:35:37 +0000 (19:35 +0000)]
fix corner case in `evaluate` (#3728)

- augment `ufuzz` for further `RegExp` testing

4 years agov3.8.0
Alex Lam S.L [Tue, 18 Feb 2020 12:32:37 +0000 (20:32 +0800)]
v3.8.0

4 years agoimprove `--reduce-test` (#3727)
Alex Lam S.L [Mon, 17 Feb 2020 20:56:22 +0000 (20:56 +0000)]
improve `--reduce-test` (#3727)

- print out Node.js and OS information

4 years agospeed up `--reduce-test` (#3726)
Alex Lam S.L [Mon, 17 Feb 2020 15:35:07 +0000 (15:35 +0000)]
speed up `--reduce-test` (#3726)

- avoid pathological test case branches via adaptive time-out
- use initial test case elapsed time to adjust maximum time-out
- index output cache using hash instead of raw source

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)