Fix --mangle-props and --mangle-props=unquoted
authorkzc <zaxxon2011@gmail.com>
Sun, 31 Jul 2016 06:35:14 +0000 (02:35 -0400)
committerRichard van Velzen <rvanvelzen1@gmail.com>
Sun, 14 Aug 2016 19:51:25 +0000 (21:51 +0200)
commitde619ae5a62472a76b0bfaa23d8e0b3068472196
treeb2e04ba43a47de40dbfbb39bc35347341e3ac432
parent86859f6d7e9e738ccf09a83a28962c9bad8e959f
Fix --mangle-props and --mangle-props=unquoted

Fixes: #1247

Fix --mangle-props and --name-cache inconsistency.
AST_Dot and AST_Sub properties are now mangled by --mangle-props
without regard to being used in an assignment statement.

Note: if --mangle-props is used then *all* javascript files used must
be uglified with the same mangle options.

Fix the ignore_quoted=true mangle option, also known as
`--mangle-props=unquoted`.  If a given property is quoted anywhere
it will not be mangled in any quoted or non-quoted context.
lib/propmangle.js
test/compress/properties.js