Files
babel/test/fixtures/property-methods-assignment/getter-and-setter/expected.js
Sebastian McKenzie c97696c224 first commit
2014-09-28 23:39:22 +10:00

14 lines
225 B
JavaScript

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