es6-plato icon indicating copy to clipboard operation
es6-plato copied to clipboard

ES6 object shorthand function support

Open rookiePrgrmer opened this issue 6 years ago • 1 comments

We found that es6-plato can't recognize es6 object shorthand function, for example:

const obj = {
    // recognized
    foo: function() {}
};
const obj = {
    // not recognize
    foo() {}
}

Is that true, or we used es6-plato in wrong way?

rookiePrgrmer avatar Feb 02 '19 09:02 rookiePrgrmer

@rookiePrgrmer I'll be updating the underlying parser that might fix this soon. I'll let you know when.

the-simian avatar Feb 05 '19 01:02 the-simian