2014-12-10 21:11:13 +11:00

25 lines
482 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 () {
var Test = function Test() {};
_classProps(Test, null, {
bar: {
get: function () {
throw new Error("wow");
},
enumerable: true
}
});
return Test;
})();
var test = new Test();
test.bar;