aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorJustin Lau <justin@tclau.com>2013-05-05 22:08:13 +0800
committerJustin Lau <justin@tclau.com>2013-05-05 22:08:13 +0800
commit8227e8795b309b46e0f2ef998d7238198eb07425 (patch)
treebc1378bc0b6ddc584baa1a7b9a1a9a9777e8af63 /test/compress
parentd6e6458f68a258e2a3694069005ec7999180748f (diff)
downloadtracifyjs-8227e8795b309b46e0f2ef998d7238198eb07425.tar.gz
tracifyjs-8227e8795b309b46e0f2ef998d7238198eb07425.zip
Added scenario in test case where properties shouldn't be accessed with
dotted syntax even with screw_ie8 option. Signed-off-by: Justin Lau <justin@tclau.com>
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/properties.js4
1 files changed, 4 insertions, 0 deletions
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";
}
}