From: Justin Lau Date: Sun, 5 May 2013 14:08:13 +0000 (+0800) Subject: Added scenario in test case where properties shouldn't be accessed with X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8227e8795b309b46e0f2ef998d7238198eb07425;p=UglifyJS.git Added scenario in test case where properties shouldn't be accessed with dotted syntax even with screw_ie8 option. Signed-off-by: Justin Lau --- diff --git a/test/compress/properties.js b/test/compress/properties.js index 9b066ec9..118bc4c2 100644 --- a/test/compress/properties.js +++ b/test/compress/properties.js @@ -17,10 +17,12 @@ dot_properties: { input: { a["foo"] = "bar"; a["if"] = "if"; + a["*"] = "asterisk"; } expect: { a.foo = "bar"; a["if"] = "if"; + a["*"] = "asterisk"; } } @@ -32,9 +34,11 @@ dot_properties_es5: { input: { a["foo"] = "bar"; a["if"] = "if"; + a["*"] = "asterisk"; } expect: { a.foo = "bar"; a.if = "if"; + a["*"] = "asterisk"; } }