UglifyJS.git
4 years agofix corner case in `conditionals` (#3809)
Alex Lam S.L [Tue, 21 Apr 2020 22:30:08 +0000 (23:30 +0100)]
fix corner case in `conditionals` (#3809)

fixes #3808

4 years agoadjust `ufuzz` schedule (#3807)
Alex Lam S.L [Tue, 21 Apr 2020 18:58:02 +0000 (19:58 +0100)]
adjust `ufuzz` schedule (#3807)

4 years agospeed up `ufuzz` on GitHub Actions (#3806)
Alex Lam S.L [Tue, 21 Apr 2020 14:51:42 +0000 (15:51 +0100)]
speed up  `ufuzz` on GitHub Actions (#3806)

4 years agoenhance `conditionals` (#3805)
Alex Lam S.L [Mon, 20 Apr 2020 01:42:13 +0000 (02:42 +0100)]
enhance `conditionals` (#3805)

4 years agoenhance `join_vars` (#3804)
Alex Lam S.L [Sun, 19 Apr 2020 22:37:46 +0000 (23:37 +0100)]
enhance `join_vars` (#3804)

4 years agofix corner case in `functions` & `unused` (#3803)
Alex Lam S.L [Sat, 18 Apr 2020 22:28:01 +0000 (23:28 +0100)]
fix corner case in `functions` & `unused` (#3803)

fixes #3802

4 years agoenhance `collapse_vars` (#3801)
Alex Lam S.L [Sat, 18 Apr 2020 21:04:21 +0000 (22:04 +0100)]
enhance `collapse_vars` (#3801)

4 years agoenhance `unused` (#3800)
Alex Lam S.L [Sat, 18 Apr 2020 16:10:24 +0000 (17:10 +0100)]
enhance `unused` (#3800)

4 years agoenhance `collapse_vars` (#3799)
Alex Lam S.L [Sat, 18 Apr 2020 15:12:20 +0000 (16:12 +0100)]
enhance `collapse_vars` (#3799)

4 years agoenhance `conditionals` (#3798)
Alex Lam S.L [Sat, 18 Apr 2020 14:32:22 +0000 (15:32 +0100)]
enhance `conditionals` (#3798)

4 years agoenhance `unused` (#3794)
Alex Lam S.L [Sat, 18 Apr 2020 10:52:44 +0000 (11:52 +0100)]
enhance `unused` (#3794)

4 years agofix corner case in `join_vars` (#3796)
Alex Lam S.L [Sat, 18 Apr 2020 10:08:05 +0000 (11:08 +0100)]
fix corner case in `join_vars` (#3796)

fixes #3795

4 years agoreport top-level default options (#3797)
Alex Lam S.L [Sat, 18 Apr 2020 10:03:06 +0000 (11:03 +0100)]
report top-level default options (#3797)

4 years agoenhance `collapse_vars` (#3793)
Alex Lam S.L [Sat, 18 Apr 2020 02:06:20 +0000 (03:06 +0100)]
enhance `collapse_vars` (#3793)

4 years agoexpand `ufuzz` patterns (#3792)
Alex Lam S.L [Fri, 17 Apr 2020 23:12:13 +0000 (00:12 +0100)]
expand `ufuzz` patterns (#3792)

4 years agofix corner cases in `join_vars` (#3790)
Alex Lam S.L [Fri, 17 Apr 2020 18:53:26 +0000 (19:53 +0100)]
fix corner cases in `join_vars` (#3790)

fixes #3789
fixes #3791

4 years agofix corner cases in `join_vars` (#3787)
Alex Lam S.L [Fri, 17 Apr 2020 13:19:18 +0000 (14:19 +0100)]
fix corner cases in `join_vars` (#3787)

fixes #3786
fixes #3788

4 years agosuppress mutation of input `options` (#3785)
Alex Lam S.L [Fri, 17 Apr 2020 07:13:49 +0000 (08:13 +0100)]
suppress mutation of input `options` (#3785)

4 years agosupport optional output of `names` in source maps (#3784)
Alex Lam S.L [Thu, 16 Apr 2020 23:20:48 +0000 (00:20 +0100)]
support optional output of `names` in source maps (#3784)

4 years agoenhance `join_vars` (#3783)
Alex Lam S.L [Thu, 16 Apr 2020 21:31:33 +0000 (22:31 +0100)]
enhance `join_vars` (#3783)

4 years agoimprove source-map generation (#3782)
Alex Lam S.L [Thu, 16 Apr 2020 15:30:25 +0000 (16:30 +0100)]
improve source-map generation (#3782)

- emit singleton segments to mark generated code from input

4 years agov3.9.1
Alex Lam S.L [Wed, 15 Apr 2020 09:26:30 +0000 (17:26 +0800)]
v3.9.1

4 years agoprevent input source map mutation (#3781)
Alex Lam S.L [Wed, 15 Apr 2020 09:25:58 +0000 (10:25 +0100)]
prevent input source map mutation (#3781)

fixes #3780

4 years agoexpand testing on Node.js versions (#3779)
Alex Lam S.L [Tue, 14 Apr 2020 02:13:42 +0000 (03:13 +0100)]
expand testing on Node.js versions (#3779)

4 years agov3.9.0
Alex Lam S.L [Mon, 13 Apr 2020 12:45:02 +0000 (13:45 +0100)]
v3.9.0

4 years agofix corner case in `inline` (#3778)
Alex Lam S.L [Sat, 11 Apr 2020 11:54:26 +0000 (12:54 +0100)]
fix corner case in `inline` (#3778)

fixes #3777

4 years agoimprove handling of `eval` (#3776)
Alex Lam S.L [Fri, 10 Apr 2020 22:36:17 +0000 (23:36 +0100)]
improve handling of `eval` (#3776)

closes #3768

4 years agofix corner case in `reduce_vars` (#3775)
Alex Lam S.L [Fri, 10 Apr 2020 18:19:38 +0000 (19:19 +0100)]
fix corner case in `reduce_vars` (#3775)

fixes #3774

4 years agoadd tests for `eval()` (#3769)
Alex Lam S.L [Fri, 10 Apr 2020 16:36:53 +0000 (17:36 +0100)]
add tests for `eval()` (#3769)

closes #3768

4 years agofix corner cases in `inline` (#3773)
Alex Lam S.L [Fri, 10 Apr 2020 16:34:45 +0000 (17:34 +0100)]
fix corner cases in `inline` (#3773)

fixes #3770
fixes #3771
fixes #3772

4 years agoenhance `inline` (#3767)
Alex Lam S.L [Fri, 10 Apr 2020 02:48:24 +0000 (03:48 +0100)]
enhance `inline` (#3767)

4 years agoworkaround intermittent nodejs.org corruptions (#3766)
Alex Lam S.L [Tue, 7 Apr 2020 00:40:38 +0000 (01:40 +0100)]
workaround intermittent nodejs.org corruptions (#3766)

4 years agofix export of PATH to Node.js (#3765)
Alex Lam S.L [Mon, 6 Apr 2020 17:14:16 +0000 (18:14 +0100)]
fix export of PATH to Node.js (#3765)

4 years agofix Github Actions retry logic (#3763)
Alex Lam S.L [Mon, 6 Apr 2020 14:16:48 +0000 (15:16 +0100)]
fix Github Actions retry logic (#3763)

4 years agoexpand `ufuzz` patterns (#3761)
Alex Lam S.L [Sun, 5 Apr 2020 14:12:46 +0000 (15:12 +0100)]
expand `ufuzz` patterns (#3761)

4 years agoenhance `inline` (#3760)
Alex Lam S.L [Sun, 5 Apr 2020 02:42:23 +0000 (03:42 +0100)]
enhance `inline` (#3760)

4 years agoimprove resilience against nodejs.org failures (#3759)
Alex Lam S.L [Thu, 2 Apr 2020 18:49:38 +0000 (19:49 +0100)]
improve resilience against nodejs.org failures (#3759)

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