Added scenario in test case where properties shouldn't be accessed with
authorJustin Lau <justin@tclau.com>
Sun, 5 May 2013 14:08:13 +0000 (22:08 +0800)
committerJustin Lau <justin@tclau.com>
Sun, 5 May 2013 14:08:13 +0000 (22:08 +0800)
dotted syntax even with screw_ie8 option.
Signed-off-by: Justin Lau <justin@tclau.com>
test/compress/properties.js

index 9b066ec..118bc4c 100644 (file)
@@ -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";
     }
 }