Fix a["1_1"]

Close #204
This commit is contained in:
Mihai Bazon
2013-05-14 10:41:28 +03:00
parent 3edfe7d0ee
commit d56ebd7d7b
3 changed files with 5 additions and 2 deletions

View File

@@ -1965,8 +1965,8 @@ merge(Compressor.prototype, {
var prop = self.property;
if (prop instanceof AST_String && compressor.option("properties")) {
prop = prop.getValue();
if (compressor.option("screw_ie8") && RESERVED_WORDS(prop)
|| !(RESERVED_WORDS(prop)) && is_identifier_string(prop)) {
if ((compressor.option("screw_ie8") && RESERVED_WORDS(prop))
|| (!(RESERVED_WORDS(prop)) && is_identifier_string(prop))) {
return make_node(AST_Dot, self, {
expression : self.expression,
property : prop