Shrey Banga
e645ba84cf
Respect quote style in object literals
...
The option added in fbbaa42ee5 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.
2016-06-19 21:13:31 +02:00
Dan Wolff
8511e80f48
Evaluate "foo".length ==> 3
2014-07-01 11:06:51 +03:00
Mihai Bazon
37693d2812
Update tests.
2014-04-18 11:19:52 +03:00
Mihai Bazon
d56ebd7d7b
Fix a["1_1"]
...
Close #204
2013-05-14 10:42:34 +03:00
Trey Griffith
1e9f98aa51
add a test for zero-length string in is_identifier_string, which is used in property compression. Also added a test exercising the change.
2013-05-08 22:43:20 +03:00
Justin Lau
fcd544cc10
Added test scenario with unicode in properties name.
...
Signed-off-by: Justin Lau <justin@tclau.com >
2013-05-06 01:26:33 +08:00
Justin Lau
8227e8795b
Added scenario in test case where properties shouldn't be accessed with
...
dotted syntax even with screw_ie8 option.
Signed-off-by: Justin Lau <justin@tclau.com >
2013-05-05 22:08:13 +08:00
Michael Ficarra
5af144522a
fixes #189 : use dotted member access when --screw-ie8 option given
2013-04-20 15:11:05 -05:00
Mihai Bazon
159a6f048c
wrote more of the compressor and added some tests
2012-08-22 15:21:58 +03:00