diff options
-rw-r--r-- | lib/compress.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index ebd3dd7a..623fe45e 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1962,7 +1962,8 @@ merge(Compressor.prototype, { var prop = self.property; if (prop instanceof AST_String && compressor.option("properties")) { prop = prop.getValue(); - if (is_identifier(prop) || compressor.option("screw_ie8")) { + if (is_identifier(prop) + || (compressor.option("screw_ie8") && /^[a-z_$][a-z0-9_$]*$/i.test(prop))) { return make_node(AST_Dot, self, { expression : self.expression, property : prop |