pub fn shorthand() -> impl 'static + Fold + VisitMut
Expand description
Compile ES2015 shorthand properties to ES5
§Example
§Out
var o = { a: a, b: b, c: c };
var cat = {
getName() {
return name;
}
};
§Out
var cat = {
getName: function () {
return name;
}
};