diff options
author | Michael Ficarra <mficarra@groupon.com> | 2013-04-20 15:11:05 -0500 |
---|---|---|
committer | Michael Ficarra <mficarra@groupon.com> | 2013-04-20 15:11:05 -0500 |
commit | 5af144522a6fea302abdd0b63d48864de0664207 (patch) | |
tree | 69291fff13832734c4752f49276f5dcb69a59b94 /test/compress/properties.js | |
parent | 4b818056cf1a19fe6251e026cac4894f618f0217 (diff) | |
download | tracifyjs-5af144522a6fea302abdd0b63d48864de0664207.tar.gz tracifyjs-5af144522a6fea302abdd0b63d48864de0664207.zip |
fixes #189: use dotted member access when --screw-ie8 option given
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r-- | test/compress/properties.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js index 72e245ec..9b066ec9 100644 --- a/test/compress/properties.js +++ b/test/compress/properties.js @@ -23,3 +23,18 @@ dot_properties: { a["if"] = "if"; } } + +dot_properties_es5: { + options = { + properties: true, + screw_ie8: true + }; + input: { + a["foo"] = "bar"; + a["if"] = "if"; + } + expect: { + a.foo = "bar"; + a.if = "if"; + } +} |