clean up and fix tests
This commit is contained in:
@@ -2,18 +2,23 @@
|
||||
|
||||
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");
|
||||
} } });
|
||||
_classProps(Test, null, {
|
||||
bar: {
|
||||
get: function () {
|
||||
throw new Error("wow");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return Test;
|
||||
})();
|
||||
|
||||
var test = new Test;
|
||||
test.bar;
|
||||
var test = new Test();
|
||||
test.bar;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[{
|
||||
"original": {
|
||||
"line": 3,
|
||||
"column": 11
|
||||
"column": 10
|
||||
},
|
||||
"generated": {
|
||||
"line": 12,
|
||||
"column": 11
|
||||
"line": 15,
|
||||
"column": 15
|
||||
}
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user