From 8227e8795b309b46e0f2ef998d7238198eb07425 Mon Sep 17 00:00:00 2001 From: Justin Lau Date: Sun, 5 May 2013 22:08:13 +0800 Subject: [PATCH] Added scenario in test case where properties shouldn't be accessed with dotted syntax even with screw_ie8 option. Signed-off-by: Justin Lau --- test/compress/properties.js | 4 ++++ 1 file changed, 4 insertions(+) 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"; } } -- 2.34.1