fix mangle of destructuring parameters with computed properties (#2359)

fixes #2349
This commit is contained in:
kzc
2017-10-15 08:59:52 -04:00
committed by Alex Lam S.L
parent 336b1add4f
commit f79f737fb2
2 changed files with 72 additions and 3 deletions

View File

@@ -2000,9 +2000,6 @@ function parse($TEXT, options) {
names: ex.properties.map(to_fun_args)
}), default_seen_above);
} else if (ex instanceof AST_ObjectKeyVal) {
if (ex.key instanceof AST_SymbolRef) {
ex.key = to_fun_args(ex.key, 0, [ex.key]);
}
ex.value = to_fun_args(ex.value, 0, [ex.key]);
return insert_default(ex, default_seen_above);
} else if (ex instanceof AST_Hole) {