Files
babel/test/fixtures/transformation/source-maps/class/expected.js
2015-01-11 02:43:17 +11:00

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