Make concise methods work with propmangle

This commit is contained in:
Fábio Santos
2015-10-26 22:15:21 +00:00
committed by Richard van Velzen
parent 34213ea2f8
commit c99eaae360
2 changed files with 28 additions and 0 deletions

View File

@@ -149,6 +149,26 @@ concise_methods: {
expect_exact: "x={foo(a,b){return x}};y={foo([{a}]){return a},bar(){}};"
}
concise_methods_and_mangle_props: {
mangle_props = {
regex: /_/
};
input: {
function x() {
obj = {
_foo() { return 1; }
}
}
}
expect: {
function x() {
obj = {
a() { return 1; }
}
}
}
}
number_literals: {
input: {
0b1001;