Allow 'name' as object literal shorthand property (#1617)

fixes #1613
This commit is contained in:
Alex Zaworski
2017-03-17 10:29:13 -07:00
committed by Alex Lam S.L
parent 2fd86d3cb0
commit d26b7522d9
2 changed files with 11 additions and 4 deletions

View File

@@ -320,3 +320,14 @@ expansion: {
}
}
}
issue_1613: {
mangle = { toplevel: true };
input: {
const name = 1;
const foo = {
name
};
}
expect_exact: "const n=1;const c={name:n};"
}