-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
output.js
45 lines (45 loc) 路 1.73 KB
/
output.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var _initStatic, _initClass, _init_accessor, _init_extra_accessor, _init_property, _init_extra_property, _A, _temp;
let original, replaced, accessorThis, getterThis, setterThis, methodThis, propertyThis, classThis;
function dec(Klass, context) {
original = Klass;
replaced = class extends Klass {};
context.addInitializer(function () {
classThis = this;
});
return replaced;
}
function captureInitializerThis(callback) {
return function (_, context) {
context.addInitializer(function () {
callback(this);
});
};
}
let _Foo;
new (_A = /*#__PURE__*/new WeakMap(), (_temp = class extends babelHelpers.identity {
constructor() {
(super(_Foo), babelHelpers.classPrivateFieldInitSpec(this, _A, _init_accessor()), babelHelpers.defineProperty(this, "property", (_init_extra_accessor(), _init_property()))), (() => {
_init_extra_property();
})(), _initClass();
}
}, (_Foo2 => {
class Foo {
static get accessor() {
return babelHelpers.classPrivateFieldGet2(Foo, _A);
}
static set accessor(v) {
babelHelpers.classPrivateFieldSet2(Foo, _A, v);
}
static get getter() {}
static set setter(_) {}
static method() {}
}
_Foo2 = Foo;
(() => {
({
e: [_init_accessor, _init_extra_accessor, _init_property, _init_extra_property, _initStatic],
c: [_Foo, _initClass]
} = babelHelpers.applyDecs2311(_Foo2, [dec], [[captureInitializerThis(v => accessorThis = v), 9, "accessor"], [captureInitializerThis(v => getterThis = v), 11, "getter"], [captureInitializerThis(v => setterThis = v), 12, "setter"], [captureInitializerThis(v => methodThis = v), 10, "method"], [captureInitializerThis(v => propertyThis = v), 8, "property"]]));
_initStatic(_Foo2);
})();
})(), _temp))();