diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index 1e99f158..b55361b3 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2371,6 +2371,15 @@ merge(Compressor.prototype, { }); OPT(AST_Dot, function(self, compressor){ + var prop = self.property; + if (RESERVED_WORDS(prop) && !compressor.option("screw_ie8")) { + return make_node(AST_Sub, self, { + expression : self.expression, + property : make_node(AST_String, self, { + value: prop + }) + }).optimize(compressor); + } return self.evaluate(compressor)[0]; }); |