mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
29 lines
981 B
JavaScript
29 lines
981 B
JavaScript
|
function _defineProperties(target, props) {
|
||
|
for(var i = 0; i < props.length; i++){
|
||
|
var descriptor = props[i];
|
||
|
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
|
||
|
}
|
||
|
}
|
||
|
var C = function() {
|
||
|
"use strict";
|
||
|
var Constructor, protoProps, staticProps;
|
||
|
function C() {
|
||
|
!function(instance, Constructor) {
|
||
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||
|
}(this, C);
|
||
|
}
|
||
|
return protoProps = [
|
||
|
{
|
||
|
key: "bar",
|
||
|
value: function() {
|
||
|
return 0;
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
key: "",
|
||
|
value: function() {
|
||
|
}
|
||
|
}
|
||
|
], _defineProperties((Constructor = C).prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;
|
||
|
}();
|