[Pkg-javascript-commits] [uglifyjs] 07/49: Fix the document of keep_fnames option
Jonas Smedegaard
dr at jones.dk
Fri Dec 9 11:43:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository uglifyjs.
commit 9edbe93df5633bd13b1c001d066887e011ce767c
Author: homuler <eulerdora.1810.mann at gmail.com>
Date: Sat Jul 16 22:03:36 2016 +0900
Fix the document of keep_fnames option
---
README.md | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 04b0799..61a6000 100644
--- a/README.md
+++ b/README.md
@@ -135,11 +135,11 @@ The available options are:
--reserved-file File containing reserved names
--reserve-domprops Make (most?) DOM properties reserved for
--mangle-props
- --mangle-props Mangle property names (default `0`). Set to
+ --mangle-props Mangle property names (default `0`). Set to
`true` or `1` to mangle all property names. Set
- to `unquoted` or `2` to only mangle unquoted
+ to `unquoted` or `2` to only mangle unquoted
property names. Mode `2` also enables the
- `keep_quoted_props` beautifier option to
+ `keep_quoted_props` beautifier option to
preserve the quotes around property names and
disables the `properties` compressor option to
prevent rewriting quoted properties with dot
@@ -378,8 +378,8 @@ to set `true`; it's effectively a shortcut for `foo=true`).
for code which relies on `Function.length`.
- `keep_fnames` -- default `false`. Pass `true` to prevent the
- compressor from mangling/discarding function names. Useful for code relying on
- `Function.prototype.name`.
+ compressor from discarding function names. Useful for code relying on
+ `Function.prototype.name`. See also: the `keep_fnames` [mangle option](#mangle).
- `passes` -- default `1`. Number of times to run compress. Use an
integer argument larger than 1 to further reduce code size in some cases.
@@ -712,9 +712,13 @@ Other options:
- `toplevel` — mangle names declared in the toplevel scope (disabled by
default).
- - `eval` — mangle names visible in scopes where eval or with are used
+ - `eval` — mangle names visible in scopes where eval or with are used
(disabled by default).
+ - `keep_fnames` -- default `false`. Pass `true` to not mangle
+ function names. Useful for code relying on `Function.prototype.name`.
+ See also: the `keep_fnames` [compress option](#compressor-options).
+
Examples:
```javascript
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list