mirror of
https://github.com/swc-project/swc.git
synced 2025-01-08 23:10:13 +03:00
30 lines
1.1 KiB
JavaScript
30 lines
1.1 KiB
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 tmp = Symbol.hasInstance, tmp1 = Symbol.hasInstance, 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 Constructor = C, protoProps = [
|
||
|
{
|
||
|
key: tmp,
|
||
|
get: function() {
|
||
|
return "";
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
key: tmp1,
|
||
|
set: function(x) {
|
||
|
}
|
||
|
}
|
||
|
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;
|
||
|
}();
|
||
|
(new C)[Symbol.hasInstance] = 0, (new C)[Symbol.hasInstance] = "";
|