2014-10-11 22:33:08 +11:00

16 lines
255 B
JavaScript

var Test = function () {
function Test() {
}
Object.defineProperties(Test.prototype, {
test: {
get: function () {
return 5 + 5;
},
set: function (val) {
this._test = val;
}
}
});
return Test;
}();