-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
output.js
47 lines (47 loc) 路 1.54 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
46
47
var _initStatic, _initClass, _init_accessor, _init_extra_accessor, _init_property, _init_extra_property;
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 class extends babelHelpers.identity {
static {
class Foo {
static {
({
e: [_init_accessor, _init_extra_accessor, _init_property, _init_extra_property, _initStatic],
c: [_Foo, _initClass]
} = babelHelpers.applyDecs2311(this, [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(this);
}
static get accessor() {
return Foo.#A;
}
static set accessor(v) {
Foo.#A = v;
}
static get getter() {}
static set setter(_) {}
static method() {}
}
}
#A = _init_accessor();
property = (_init_extra_accessor(), _init_property());
constructor() {
super(_Foo), (() => {
_init_extra_property();
})(), _initClass();
}
}();