Add extra test case for issue #1321

Verifies behavior with `ignore_quoted: false`.
This commit is contained in:
Ashley (Scirra) 2016-10-06 18:09:23 +01:00
parent 10cee1144b
commit 3f3ab65e8a

View File

@ -34,3 +34,21 @@ issue_1321_debug: {
console.log(x.a, x["_$foo$_"]); console.log(x.a, x["_$foo$_"]);
} }
} }
issue_1321_with_quoted: {
mangle_props = {
ignore_quoted: false
}
input: {
var x = {};
x.foo = 1;
x["a"] = 2 * x.foo;
console.log(x.foo, x["a"]);
}
expect: {
var x = {};
x.a = 1;
x["b"] = 2 * x.a;
console.log(x.a, x["b"]);
}
}