2015-01-15 02:24:23 +11:00

24 lines
499 B
JavaScript

"use strict";
var _prototypeProperties = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};
var Test = (function () {
function Test() {}
_prototypeProperties(Test, null, {
test: {
value: function test() {
return 5 + 5;
},
writable: true,
enumerable: true,
configurable: true
}
});
return Test;
})();