ensure ie8 works with mangled properties (#2238)

fixes #2234
This commit is contained in:
Alex Lam S.L
2017-07-15 22:50:59 +08:00
committed by GitHub
parent a5ffe2c23f
commit 9e1da9235e
4 changed files with 50 additions and 28 deletions

View File

@@ -13,8 +13,10 @@ keep_properties: {
dot_properties: {
options = {
properties: true,
}
beautify = {
ie8: true,
};
}
input: {
a["foo"] = "bar";
a["if"] = "if";
@@ -36,8 +38,10 @@ dot_properties: {
dot_properties_es5: {
options = {
properties: true,
}
beautify = {
ie8: false,
};
}
input: {
a["foo"] = "bar";
a["if"] = "if";