diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2013-04-21 01:30:02 -0700 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2013-04-21 01:30:02 -0700 |
commit | 753b4b6cc8aff37b9678b3bc3a883874bf4cac51 (patch) | |
tree | c0ec1197c2d52441ce83c61be4df4383403e305e /test | |
parent | a9c1b9f1385464309247fb2dd299ba6bb90bce10 (diff) | |
parent | 5af144522a6fea302abdd0b63d48864de0664207 (diff) | |
download | tracifyjs-753b4b6cc8aff37b9678b3bc3a883874bf4cac51.tar.gz tracifyjs-753b4b6cc8aff37b9678b3bc3a883874bf4cac51.zip |
Merge pull request #191 from michaelficarra/use-es5-member-access-with-screw-ie
use dotted member access when --screw-ie8 option given
Diffstat (limited to 'test')
-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"; + } +} |