Convert p: function(){} to p(){} in object literals (#2199)
when `compress` option `ecma` is 6 or greater.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user