Convert p: function(){} to p(){} in object literals (#2199)

when `compress` option `ecma` is 6 or greater.
This commit is contained in:
kzc
2017-07-04 02:35:58 -04:00
committed by Alex Lam S.L
parent 33ad0d258c
commit fdbb1d09ef
3 changed files with 194 additions and 2 deletions

View File

@@ -313,12 +313,13 @@ issue_2105_1: {
});
}
expect: {
(() => {
// TODO: outer function should be an arrow function
(function() {
var quux = () => {
console.log("PASS");
};
return {
prop: () => {
prop() {
console.log;
quux();
}