21 lines
430 B
JavaScript
21 lines
430 B
JavaScript
"use strict";
|
|
|
|
var _classProps = function (child, staticProps, instanceProps) {
|
|
if (staticProps) Object.defineProperties(child, staticProps);
|
|
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
|
|
};
|
|
|
|
var Test = function Test() {};
|
|
|
|
_classProps(Test, null, {
|
|
test: {
|
|
get: function () {
|
|
return 5 + 5;
|
|
},
|
|
set: function (val) {
|
|
this._test = val;
|
|
},
|
|
enumerable: true
|
|
}
|
|
});
|