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
function is_identifier_string(str){
var i = str.length;
if (i == 0) return false;
+ if (is_digit(str.charCodeAt(0))) return false;
while (--i >= 0) {
if (!is_identifier_char(str.charAt(i)))
return false;