Files
babel/test/fixtures/syntax/property-methods-assignment/getter-and-setter/expected.js

14 lines
228 B
JavaScript

var obj = function (_obj) {
Object.defineProperties(_obj, {
foo: {
get: function () {
return 5 + 5;
},
set: function (value) {
this._foo = value;
}
}
});
return _obj;
}({});