From 94a954c3d16a66bda16c57506afe5dfc1ddcbe6d Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 5 Oct 2022 19:06:21 +0100 Subject: [PATCH] minor clean-ups (#5701) --- CONTRIBUTING.md | 2 +- README.md | 6 ++-- lib/ast.js | 2 +- lib/compress.js | 5 ++-- lib/output.js | 20 ++++++------- lib/parse.js | 48 ++++++++++++++--------------- lib/propmangle.js | 2 +- test/compress/concat-strings.js | 2 +- test/compress/if_return.js | 2 +- test/compress/imports.js | 8 ++--- test/compress/issue-143.js | 53 ++++++++++++++++++++++----------- test/compress/issue-368.js | 4 +-- test/compress/join_vars.js | 4 +-- test/mocha/comments.js | 2 +- test/mocha/directives.js | 2 +- test/mocha/sourcemaps.js | 2 +- test/ufuzz/index.js | 2 +- 17 files changed, 89 insertions(+), 77 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2d991a5f..7c08453c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,7 +3,7 @@ Contributing ## Documentation -Every new feature and API change should be accompanied by a README additon. +Every new feature and API change should be accompanied by a README addition. ## Testing diff --git a/README.md b/README.md index 0bd7221b..ba5f2a29 100644 --- a/README.md +++ b/README.md @@ -646,7 +646,7 @@ to be `false` and all symbol names will be omitted. - `bare_returns` (default: `false`) — support top level `return` statements - `html5_comments` (default: `true`) — process HTML comment as workaround for - browsers which do not recognise `