Files
babel/test/fixtures/transformation/es6-classes/instance-getter-and-setter/expected.js
2015-01-13 00:03:52 +11:00

26 lines
534 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: {
get: function () {
return 5 + 5;
},
set: function (val) {
this._test = val;
},
enumerable: true,
configurable: true
}
});
return Test;
})();