aboutsummaryrefslogtreecommitdiff
path: root/test/compress/properties.js
AgeCommit message (Collapse)Author
2017-01-26augment evaluate to extract within objects (#1425)Alex Lam S.L
- gated by `unsafe` - replaces previous optimisation specific to String.length - "123"[0] => 1 - [1, 2, 3][0] => 1 - [1, 2, 3].length => 3 - does not apply to objects with overridden prototype functions
2016-11-29Add --mangle-props-debug and fix --mangle-props=unquoted collisionAshley (Scirra)
Patch by @AshleyScirra Based on: PR #1316 Renamed the CLI debug option to --mangle-props-debug Fixes: #1321 name collision in --mangle-props=unquoted
2016-08-14Fix --mangle-props and --mangle-props=unquotedkzc
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.
2016-08-14Additional object literal property testskzc
2016-06-30Enable --screw-ie8 by default.kzc
catch identifier is mangled correctly for ES5 standards-compliant JS engines by default. Unconditionally use the ie8 if/do-while workaround whether or not --screw-ie8 is enabled. To support non-standard ie8 javascript use: uglifyjs --support-ie8
2016-06-19Respect quote style in object literalsShrey Banga
The option added in fbbaa42ee55a7f753f7cab9b1a905ccf73cf26d5 wasn't being respected inside object literals, so quoted property names would still be stripped out with this option. This is mostly a corner-case, but useful when the output is passed to something like the Closure compiler, where quoted property names can be used to prevent mangling.
2014-07-01Evaluate "foo".length ==> 3Dan Wolff
2014-04-18Update tests.Mihai Bazon
2013-05-14Fix a["1_1"]Mihai Bazon
Close #204
2013-05-08add a test for zero-length string in is_identifier_string, which is used in ↵Trey Griffith
property compression. Also added a test exercising the change.
2013-05-06Added test scenario with unicode in properties name.Justin Lau
Signed-off-by: Justin Lau <justin@tclau.com>
2013-05-05Added scenario in test case where properties shouldn't be accessed withJustin Lau
dotted syntax even with screw_ie8 option. Signed-off-by: Justin Lau <justin@tclau.com>
2013-04-20fixes #189: use dotted member access when --screw-ie8 option givenMichael Ficarra
2012-08-22wrote more of the compressor and added some testsMihai Bazon