Conflicts: lib/6to5/transformers/classes.js test/fixtures/transformation/source-maps/class/expected.js test/fixtures/transformation/source-maps/class/source-mappings.json
15 lines
427 B
JavaScript
15 lines
427 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");
|
|
} } });
|
|
return Test;
|
|
})();
|
|
var test = new Test;
|
|
test.bar;
|