UglifyJS.git
2 years agoAdd /package-lock.json to .gitgnore master
Nick Downing [Fri, 11 Feb 2022 06:39:30 +0000 (01:39 -0500)]
Add /package-lock.json to .gitgnore

2 years agoAdd way for caller using interpolate option to find out whether we interpolated,...
Nick Downing [Wed, 12 Jan 2022 14:00:38 +0000 (01:00 +1100)]
Add way for caller using interpolate option to find out whether we interpolated, fix replace() instead of replaceAll(), interpolate instead of interpolate()

2 years agoStill try to render something if accidentally use ${expression} outside script
Nick Downing [Wed, 12 Jan 2022 13:20:31 +0000 (00:20 +1100)]
Still try to render something if accidentally use ${expression} outside script

2 years agoAdd ./link.sh shortcut for ndcode install.sh
Nick Downing [Wed, 12 Jan 2022 12:11:20 +0000 (23:11 +1100)]
Add ./link.sh shortcut for ndcode install.sh

2 years agoAdd AST_Interpolate to produce ${expression} in minified output (allows to drop serve...
Nick Downing [Wed, 12 Jan 2022 12:09:45 +0000 (23:09 +1100)]
Add AST_Interpolate to produce ${expression} in minified output (allows to drop server-side values into client-side javascript), and various kinds of escaping

2 years agofix corner cases in `typeofs` (#5286)
Alex Lam S.L [Tue, 11 Jan 2022 05:13:46 +0000 (05:13 +0000)]
fix corner cases in `typeofs` (#5286)

2 years agoreport runtime process aborts correctly (#5285)
Alex Lam S.L [Tue, 11 Jan 2022 01:12:01 +0000 (01:12 +0000)]
report runtime process aborts correctly (#5285)

2 years agofix corner case in `inline` (#5284)
Alex Lam S.L [Mon, 10 Jan 2022 07:43:26 +0000 (07:43 +0000)]
fix corner case in `inline` (#5284)

fixes #5283

2 years agominor clean-ups (#5282)
Alex Lam S.L [Mon, 10 Jan 2022 05:02:26 +0000 (05:02 +0000)]
minor clean-ups (#5282)

2 years agosuppress false positives in `ufuzz` (#5281)
Alex Lam S.L [Sun, 9 Jan 2022 21:05:35 +0000 (21:05 +0000)]
suppress false positives in `ufuzz` (#5281)

2 years agoimprove `class` compatibility in `side_effects` (#5279)
Alex Lam S.L [Sun, 9 Jan 2022 13:15:42 +0000 (13:15 +0000)]
improve `class` compatibility in `side_effects` (#5279)

2 years agofix corner case in `collapse_vars` (#5278)
Alex Lam S.L [Sat, 8 Jan 2022 01:46:21 +0000 (01:46 +0000)]
fix corner case in `collapse_vars` (#5278)

fixes #5277

2 years agoenhance `collapse_vars` & `reduce_vars` (#5275)
Alex Lam S.L [Fri, 7 Jan 2022 21:26:49 +0000 (21:26 +0000)]
enhance `collapse_vars` & `reduce_vars` (#5275)

fixes #5276

2 years agofix corner case in `collapse_vars` (#5274)
Alex Lam S.L [Fri, 7 Jan 2022 07:00:23 +0000 (07:00 +0000)]
fix corner case in `collapse_vars` (#5274)

fixes #5273

2 years agofix corner case in `unused` (#5272)
Alex Lam S.L [Fri, 7 Jan 2022 06:33:42 +0000 (06:33 +0000)]
fix corner case in `unused` (#5272)

fixes #5271

2 years agofix corner case in `inline` (#5270)
Alex Lam S.L [Fri, 7 Jan 2022 05:22:16 +0000 (05:22 +0000)]
fix corner case in `inline` (#5270)

fixes #5269

2 years agoenhance `collapse_vars` (#5268)
Alex Lam S.L [Thu, 6 Jan 2022 21:13:37 +0000 (21:13 +0000)]
enhance `collapse_vars` (#5268)

2 years agofix corner case in `inline` (#5267)
Alex Lam S.L [Tue, 4 Jan 2022 20:25:48 +0000 (20:25 +0000)]
fix corner case in `inline` (#5267)

fixes #5266

2 years agofix corner cases in `inline` (#5265)
Alex Lam S.L [Tue, 4 Jan 2022 14:05:03 +0000 (14:05 +0000)]
fix corner cases in `inline` (#5265)

fixes #5263
fixes #5264

2 years agoenhance `mangle` (#5262)
Alex Lam S.L [Tue, 4 Jan 2022 02:06:00 +0000 (02:06 +0000)]
enhance `mangle` (#5262)

2 years agofix corner case in `collapse_vars` (#5261)
Alex Lam S.L [Mon, 3 Jan 2022 20:18:41 +0000 (20:18 +0000)]
fix corner case in `collapse_vars` (#5261)

fixes #5260

2 years agofix corner case in `awaits` & `inline` (#5259)
Alex Lam S.L [Mon, 3 Jan 2022 12:57:24 +0000 (12:57 +0000)]
fix corner case in `awaits` & `inline` (#5259)

fixes #5258

2 years agofix corner case in `inline` (#5257)
Alex Lam S.L [Mon, 3 Jan 2022 02:13:29 +0000 (02:13 +0000)]
fix corner case in `inline` (#5257)

fixes #5256

2 years agofix corner cases in `inline` (#5255)
Alex Lam S.L [Sun, 2 Jan 2022 13:24:41 +0000 (13:24 +0000)]
fix corner cases in `inline` (#5255)

fixes #5254

2 years agofix corner case in `inline` (#5253)
Alex Lam S.L [Sun, 2 Jan 2022 08:10:39 +0000 (08:10 +0000)]
fix corner case in `inline` (#5253)

fixes #5251

2 years agofix corner cases in `inline` (#5252)
Alex Lam S.L [Sun, 2 Jan 2022 06:59:32 +0000 (06:59 +0000)]
fix corner cases in `inline` (#5252)

fixes #5249
fixes #5250

2 years agoenhance `inline` & `unused` (#5245)
Alex Lam S.L [Sat, 1 Jan 2022 21:40:43 +0000 (21:40 +0000)]
enhance `inline` & `unused` (#5245)

2 years agoenhance `reduce_vars` (#5248)
Alex Lam S.L [Fri, 31 Dec 2021 23:53:47 +0000 (23:53 +0000)]
enhance `reduce_vars` (#5248)

2 years agofix corner cases in `reduce_vars` & `unused` (#5247)
Alex Lam S.L [Thu, 30 Dec 2021 20:47:13 +0000 (20:47 +0000)]
fix corner cases in `reduce_vars` & `unused` (#5247)

fixes #5246

2 years agofix corner case with lexical variables (#5244)
Alex Lam S.L [Wed, 29 Dec 2021 21:15:53 +0000 (21:15 +0000)]
fix corner case with lexical variables (#5244)

2 years agoenhance `inline` (#5243)
Alex Lam S.L [Mon, 27 Dec 2021 16:53:12 +0000 (16:53 +0000)]
enhance `inline` (#5243)

2 years agofix corner cases in `inline` (#5241)
Alex Lam S.L [Sun, 26 Dec 2021 00:39:06 +0000 (08:39 +0800)]
fix corner cases in `inline` (#5241)

fixes #5239
fixes #5240

2 years agofix corner case in `inline` (#5238)
Alex Lam S.L [Sat, 25 Dec 2021 11:30:49 +0000 (19:30 +0800)]
fix corner case in `inline` (#5238)

fixes #5237

2 years agosuppress false positives in `test/reduce` (#5235)
Alex Lam S.L [Fri, 24 Dec 2021 19:13:37 +0000 (19:13 +0000)]
suppress false positives in `test/reduce` (#5235)

2 years agofix corner case in `conditionals` (#5233)
Alex Lam S.L [Thu, 23 Dec 2021 14:25:02 +0000 (14:25 +0000)]
fix corner case in `conditionals` (#5233)

fixes #5232

2 years agofix corner case in `inline` (#5231)
Alex Lam S.L [Thu, 23 Dec 2021 06:26:07 +0000 (06:26 +0000)]
fix corner case in `inline` (#5231)

fixes #5230

2 years agoimprove handling of non-trivial assignment values (#5227)
Alex Lam S.L [Wed, 22 Dec 2021 23:55:06 +0000 (23:55 +0000)]
improve handling of non-trivial assignment values (#5227)

2 years agofix corner case in `booleans` & `inline` (#5229)
Alex Lam S.L [Tue, 21 Dec 2021 15:46:20 +0000 (15:46 +0000)]
fix corner case in `booleans` & `inline` (#5229)

fixes #5228

2 years agoenhance `inline` (#5226)
Alex Lam S.L [Tue, 21 Dec 2021 05:03:11 +0000 (05:03 +0000)]
enhance `inline` (#5226)

2 years agofix corner case in `unused` (#5225)
Alex Lam S.L [Sun, 19 Dec 2021 18:25:38 +0000 (18:25 +0000)]
fix corner case in `unused` (#5225)

fixes #5224

2 years agofix corner case in `hoist_props` (#5223)
Alex Lam S.L [Wed, 15 Dec 2021 18:57:34 +0000 (18:57 +0000)]
fix corner case in `hoist_props` (#5223)

fixes #5222

2 years agoimprove `compress` efficiency (#5220)
Alex Lam S.L [Wed, 15 Dec 2021 00:08:24 +0000 (00:08 +0000)]
improve `compress` efficiency (#5220)

2 years agospeed up `compress` (#5219)
Alex Lam S.L [Mon, 13 Dec 2021 23:42:47 +0000 (23:42 +0000)]
speed up `compress` (#5219)

2 years agov3.14.5
Alex Lam S.L [Mon, 13 Dec 2021 00:11:48 +0000 (08:11 +0800)]
v3.14.5

2 years agosuppress false positives in `ufuzz` (#5216)
Alex Lam S.L [Sat, 11 Dec 2021 22:19:06 +0000 (06:19 +0800)]
suppress false positives in `ufuzz` (#5216)

closes #5212
closes #5215

2 years agofix corner case in `objects` (#5214)
Alex Lam S.L [Thu, 9 Dec 2021 22:02:22 +0000 (22:02 +0000)]
fix corner case in `objects` (#5214)

fixes #5213

2 years agominor clean-up (#5210)
Alex Lam S.L [Thu, 9 Dec 2021 20:48:06 +0000 (20:48 +0000)]
minor clean-up (#5210)

2 years agominor clean-up (#5209)
Alex Lam S.L [Wed, 8 Dec 2021 21:14:57 +0000 (21:14 +0000)]
minor clean-up (#5209)

2 years agoworkaround v8 performance quirks (#5207)
Alex Lam S.L [Wed, 8 Dec 2021 05:40:47 +0000 (05:40 +0000)]
workaround v8 performance quirks (#5207)

2 years agoworkaround Unicode compatibility in testing (#5206)
Alex Lam S.L [Tue, 7 Dec 2021 10:56:57 +0000 (10:56 +0000)]
workaround Unicode compatibility in testing (#5206)

2 years agoimprove sandbox resilience against process aborts (#5205)
Alex Lam S.L [Mon, 6 Dec 2021 20:54:58 +0000 (20:54 +0000)]
improve sandbox resilience against process aborts (#5205)

2 years agoimprove testing compatibility with Node.js (#5204)
Alex Lam S.L [Mon, 6 Dec 2021 14:42:45 +0000 (14:42 +0000)]
improve testing compatibility with Node.js (#5204)

2 years agoreduce memory pressure via bit fields (#5203)
Alex Lam S.L [Mon, 6 Dec 2021 03:30:05 +0000 (03:30 +0000)]
reduce memory pressure via bit fields (#5203)

2 years agoimprove `Dictionary` performance (#5202)
Alex Lam S.L [Sun, 5 Dec 2021 06:58:52 +0000 (06:58 +0000)]
improve `Dictionary` performance (#5202)

- workaround `__proto__` quirks on v8

2 years agov3.14.4
Alex Lam S.L [Tue, 30 Nov 2021 18:34:20 +0000 (02:34 +0800)]
v3.14.4

2 years agoworkaround sporadic slowdown in GitHub Actions (#5201)
Alex Lam S.L [Sun, 28 Nov 2021 00:45:29 +0000 (00:45 +0000)]
workaround sporadic slowdown in GitHub Actions (#5201)

2 years agofix corner case in `collapse_vars` (#5200)
Alex Lam S.L [Sat, 27 Nov 2021 17:43:43 +0000 (17:43 +0000)]
fix corner case in `collapse_vars` (#5200)

fixes #5199

2 years agoworkaround `toString()` quirks on global context (#5198)
Alex Lam S.L [Sat, 27 Nov 2021 15:17:51 +0000 (15:17 +0000)]
workaround `toString()` quirks on global context (#5198)

closes #5197

2 years agofix corner case in `hoist_vars` (#5196)
Alex Lam S.L [Wed, 24 Nov 2021 20:49:38 +0000 (20:49 +0000)]
fix corner case in `hoist_vars` (#5196)

fixes #5195

2 years agoenhance `merge_vars` (#5194)
Alex Lam S.L [Wed, 24 Nov 2021 10:21:50 +0000 (10:21 +0000)]
enhance `merge_vars` (#5194)

closes #5182

2 years agofix corner case in `ie` (#5193)
Alex Lam S.L [Wed, 24 Nov 2021 09:29:26 +0000 (09:29 +0000)]
fix corner case in `ie` (#5193)

fixes #5192

2 years agoenhance `collapse_vars` (#5186)
Alex Lam S.L [Wed, 24 Nov 2021 09:28:36 +0000 (09:28 +0000)]
enhance `collapse_vars` (#5186)

closes #5182

2 years agofix corner case in `unused` (#5190)
Alex Lam S.L [Tue, 23 Nov 2021 12:10:05 +0000 (12:10 +0000)]
fix corner case in `unused` (#5190)

fixes #5189

2 years agofix corner case in `hoist_vars` (#5188)
Alex Lam S.L [Tue, 23 Nov 2021 10:00:47 +0000 (10:00 +0000)]
fix corner case in `hoist_vars` (#5188)

fixes #5187

2 years agoimprove sandbox `async` detection (#5185)
Alex Lam S.L [Mon, 22 Nov 2021 18:29:54 +0000 (18:29 +0000)]
improve sandbox `async` detection (#5185)

closes #5184

2 years agoenhance `hoist_props` & `reduce_vars` (#5183)
Alex Lam S.L [Mon, 22 Nov 2021 16:31:10 +0000 (16:31 +0000)]
enhance `hoist_props` & `reduce_vars` (#5183)

closes #5182

2 years agoenhance `side_effects` & `unused` (#5181)
Alex Lam S.L [Mon, 22 Nov 2021 03:14:28 +0000 (03:14 +0000)]
enhance `side_effects` & `unused` (#5181)

2 years agominor clean-up (#5180)
Alex Lam S.L [Fri, 19 Nov 2021 08:34:11 +0000 (08:34 +0000)]
minor clean-up (#5180)

2 years agofix corner cases in `properties` (#5178)
Alex Lam S.L [Tue, 16 Nov 2021 20:21:44 +0000 (20:21 +0000)]
fix corner cases in `properties` (#5178)

fixes #5177

2 years agofix corner case in `join_vars` (#5176)
Alex Lam S.L [Mon, 15 Nov 2021 13:35:54 +0000 (13:35 +0000)]
fix corner case in `join_vars` (#5176)

fixes #5175

2 years agofix corner case in `inline` (#5174)
Alex Lam S.L [Sun, 14 Nov 2021 23:14:08 +0000 (23:14 +0000)]
fix corner case in `inline` (#5174)

fixes #5173

2 years agoenhance `reduce_vars` (#5171)
Alex Lam S.L [Sat, 13 Nov 2021 14:18:56 +0000 (14:18 +0000)]
enhance `reduce_vars` (#5171)

2 years agofix corner case in `collapse_vars` (#5169)
Alex Lam S.L [Sat, 13 Nov 2021 14:18:18 +0000 (14:18 +0000)]
fix corner case in `collapse_vars` (#5169)

fixes #5168

2 years agoinclude Node.js v16 in CI tests (#5170)
Alex Lam S.L [Sat, 13 Nov 2021 10:34:18 +0000 (10:34 +0000)]
include Node.js v16 in CI tests (#5170)

- fix compatibility issues on v0.10 & v0.12

2 years agoenhance `reduce_vars` (#5164)
Alex Lam S.L [Thu, 4 Nov 2021 10:36:39 +0000 (18:36 +0800)]
enhance `reduce_vars` (#5164)

- fix corner case in `join_vars`

2 years agofix corner cases in `reduce_vars` & `rests` (#5166)
Alex Lam S.L [Wed, 3 Nov 2021 13:29:01 +0000 (21:29 +0800)]
fix corner cases in `reduce_vars` & `rests` (#5166)

fixes #5165

2 years agoenhance `join_vars` (#5162)
Alex Lam S.L [Tue, 2 Nov 2021 03:33:24 +0000 (11:33 +0800)]
enhance `join_vars` (#5162)

2 years agoenhance `reduce_vars` (#5163)
Alex Lam S.L [Tue, 2 Nov 2021 03:32:26 +0000 (11:32 +0800)]
enhance `reduce_vars` (#5163)

2 years agov3.14.3
Alex Lam S.L [Mon, 1 Nov 2021 21:03:46 +0000 (05:03 +0800)]
v3.14.3

2 years agofix corner case in `awaits` (#5160)
Alex Lam S.L [Sun, 31 Oct 2021 15:46:55 +0000 (23:46 +0800)]
fix corner case in `awaits` (#5160)

fixes #5159

2 years agofix corner case in `awaits` (#5158)
Alex Lam S.L [Fri, 29 Oct 2021 15:33:10 +0000 (23:33 +0800)]
fix corner case in `awaits` (#5158)

fixes #5157

2 years agofix corner case in `dead_code` (#5154)
Alex Lam S.L [Sun, 24 Oct 2021 22:18:16 +0000 (06:18 +0800)]
fix corner case in `dead_code` (#5154)

fixes #5153

2 years agoparse `let` as symbol names correctly (#5151)
Alex Lam S.L [Wed, 20 Oct 2021 18:14:29 +0000 (02:14 +0800)]
parse `let` as symbol names correctly (#5151)

fixes #5149

2 years agofix issues in tests flagged by LGTM (#5150)
Alex Lam S.L [Wed, 20 Oct 2021 18:07:23 +0000 (02:07 +0800)]
fix issues in tests flagged by LGTM (#5150)

2 years agofix corner cases in `strings` & `templates` (#5147)
Alex Lam S.L [Sat, 16 Oct 2021 10:02:23 +0000 (11:02 +0100)]
fix corner cases in `strings` & `templates` (#5147)

fixes #5145

2 years agodocument ECMAScript quirks (#5148)
Alex Lam S.L [Sat, 16 Oct 2021 05:28:13 +0000 (06:28 +0100)]
document ECMAScript quirks (#5148)

- exclude Node.js v0.8 from CI as npm registry no longer works

closes #5146

2 years agofix corner case in `merge_vars` (#5143)
Alex Lam S.L [Mon, 4 Oct 2021 16:42:46 +0000 (17:42 +0100)]
fix corner case in `merge_vars` (#5143)

fixes #5142

2 years agofix corner case in `inline` (#5141)
Alex Lam S.L [Fri, 1 Oct 2021 22:54:42 +0000 (23:54 +0100)]
fix corner case in `inline` (#5141)

fixes #5140

2 years agofix corner case in `evaluate` (#5139)
Alex Lam S.L [Thu, 30 Sep 2021 18:52:21 +0000 (19:52 +0100)]
fix corner case in `evaluate` (#5139)

fixes #5138

2 years agofix corner case in `templates` (#5137)
Alex Lam S.L [Thu, 30 Sep 2021 13:43:34 +0000 (14:43 +0100)]
fix corner case in `templates` (#5137)

fixes #5136

2 years agoavoid potential RegExp denial-of-service (#5135)
Alex Lam S.L [Wed, 29 Sep 2021 17:49:46 +0000 (18:49 +0100)]
avoid potential RegExp denial-of-service (#5135)

closes #5133
closes #5134

2 years agoenhance `templates` (#5131)
Alex Lam S.L [Thu, 23 Sep 2021 10:26:26 +0000 (11:26 +0100)]
enhance `templates` (#5131)

closes #5125

2 years agoenhance `dead_code` (#5130)
Alex Lam S.L [Tue, 21 Sep 2021 19:11:45 +0000 (20:11 +0100)]
enhance `dead_code` (#5130)

2 years agofix corner case in `rests` (#5129)
Alex Lam S.L [Sun, 19 Sep 2021 21:02:35 +0000 (22:02 +0100)]
fix corner case in `rests` (#5129)

fixes #5128

2 years agov3.14.2
Alex Lam S.L [Tue, 7 Sep 2021 13:52:59 +0000 (21:52 +0800)]
v3.14.2

2 years agotweak test & warnings (#5123)
Alex Lam S.L [Mon, 6 Sep 2021 17:33:23 +0000 (18:33 +0100)]
tweak test & warnings (#5123)

closes #5116
closes #5117
closes #5122

2 years agofix corner case in `reduce_vars` (#5121)
Alex Lam S.L [Wed, 25 Aug 2021 02:39:35 +0000 (03:39 +0100)]
fix corner case in `reduce_vars` (#5121)

fixes #5120

2 years agofix corner case in `side_effects` (#5118)
Alex Lam S.L [Mon, 23 Aug 2021 00:51:59 +0000 (01:51 +0100)]
fix corner case in `side_effects` (#5118)

2 years agofix corner cases in `optional_chains` (#5110)
Alex Lam S.L [Fri, 20 Aug 2021 02:10:10 +0000 (03:10 +0100)]
fix corner cases in `optional_chains` (#5110)

2 years agofix corner case in `inline` (#5115)
Alex Lam S.L [Wed, 18 Aug 2021 07:57:08 +0000 (08:57 +0100)]
fix corner case in `inline` (#5115)

fixes #5114