Skip to content

Commit

Permalink
update test output
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 5, 2024
1 parent 6969fd4 commit d837c27
Show file tree
Hide file tree
Showing 28 changed files with 173 additions and 123 deletions.
@@ -1,7 +1,8 @@
var _xDecs, _init_x;
export class A {
static [(_xDecs = dec, "_")];
static {
_xDecs = dec;
delete this._;
[_init_x] = babelHelpers.applyDecs(this, [[_xDecs, 0, "x"]], []);
}
x = _init_x(this);
Expand Down
@@ -1,5 +1,7 @@
let _ref;
var _initProto, _methodDecs, _A;
const dec = () => {};
_ref = (_methodDecs = deco, "_");
class A extends B {
constructor() {
let a = 2;
Expand All @@ -9,7 +11,8 @@ class A extends B {
method() {}
}
_A = A;
babelHelpers.defineProperty(A, _ref, void 0);
(() => {
_methodDecs = deco;
delete _A._;
[_initProto] = babelHelpers.applyDecs(_A, [[_methodDecs, 2, "method"]], []);
})();
@@ -1,28 +1,32 @@
let _ref;
var _initProto, _initClass, _classDecs, _methodDecs, _Foo2;
const dec = () => {};
_classDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
let _Foo;
var _a = /*#__PURE__*/new WeakMap();
_ref = (_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]], "_");
class Foo {
constructor() {
babelHelpers.classPrivateFieldInitSpec(this, _a, void _initProto(this));
}
method() {}
makeClass() {
var _barDecs, _init_bar, _outerThis, _Nested;
return _outerThis = this, (_Nested = class Nested {
let _ref2;
var _barDecs, _init_bar, _Nested;
return _ref2 = (_barDecs = babelHelpers.classPrivateFieldGet2(_a, this), "_"), (_Nested = class Nested {
constructor() {
babelHelpers.defineProperty(this, "bar", _init_bar(this));
}
}, (() => {
_barDecs = babelHelpers.classPrivateFieldGet2(_a, _outerThis);
}, babelHelpers.defineProperty(_Nested, _ref2, void 0), (() => {
delete _Nested._;
[_init_bar] = babelHelpers.applyDecs(_Nested, [[_barDecs, 0, "bar"]], []);
})(), _Nested);
}
}
_Foo2 = Foo;
babelHelpers.defineProperty(Foo, _ref, void 0);
(() => {
_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
delete _Foo2._;
[_initProto, _Foo, _initClass] = babelHelpers.applyDecs(_Foo2, [[_methodDecs, 2, "method"]], _classDecs);
})();
_initClass();
@@ -1,8 +1,9 @@
var _initProto, _methodDecs, _initProto2, _methodDecs2;
const dec = () => {};
class A extends B {
static [(_methodDecs = deco, "_")];
static {
_methodDecs = deco;
delete this._;
[_initProto] = babelHelpers.applyDecs(this, [[_methodDecs, 2, "method"]], []);
}
constructor() {
Expand All @@ -15,8 +16,9 @@ class A extends B {
method() {}
}
class C extends B {
static [(_methodDecs2 = deco, "_")];
static {
_methodDecs2 = deco;
delete this._;
[_initProto2] = babelHelpers.applyDecs(this, [[_methodDecs2, 2, "method"]], []);
}
constructor() {
Expand Down
Expand Up @@ -94,11 +94,11 @@
const noop = () => fn => fn;
new class extends B {
constructor() {
var _initProto4, _noopDecs, _outerSuper;
_outerSuper = (...args) => super(...args);
var _initProto4, _noopDecs;
class A extends B {
static [(_noopDecs = noop(log.push(super(7).method())), "_")];
static {
_noopDecs = noop(log.push(_outerSuper(7).method()));
delete this._;
[_initProto4] = babelHelpers.applyDecs(this, [[dec, 2, "method"], [_noopDecs, 2, "noop"]], []);
}
constructor() {
Expand Down Expand Up @@ -148,17 +148,18 @@
[_initProto6] = babelHelpers.applyDecs(this, [[dec, 2, "method"]], []);
}
constructor() {
var _initProto7, _noopDecs2, _outerSuper2;
new (_outerSuper2 = (...args) => super(...args), class Dummy extends B {
var _initProto7, _noopDecs2;
new class Dummy extends B {
static [(_noopDecs2 = noop(log.push(_initProto6(super(11)).method())), "_")];
static {
_noopDecs2 = noop(log.push(_initProto6(_outerSuper2(11)).method()));
delete this._;
[_initProto7] = babelHelpers.applyDecs(this, [[_noopDecs2, 2, "noop"]], []);
}
constructor() {
log.push(_initProto7(super(12)).method());
}
noop() {}
})();
}();
}
method() {
return this.a;
Expand Down
Expand Up @@ -3,17 +3,19 @@ const dec = () => {};
_classDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
let _Foo;
class Foo {
static [(_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]], "_")];
static {
_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
delete this._;
[_initProto, _Foo, _initClass] = babelHelpers.applyDecs(this, [[_methodDecs, 2, "method"]], _classDecs);
}
#a = void _initProto(this);
method() {}
makeClass() {
var _barDecs, _init_bar, _outerThis;
return _outerThis = this, class Nested {
var _barDecs, _init_bar;
return class Nested {
static [(_barDecs = this.#a, "_")];
static {
_barDecs = _outerThis.#a;
delete this._;
[_init_bar] = babelHelpers.applyDecs(this, [[_barDecs, 0, "bar"]], []);
}
bar = _init_bar(this);
Expand Down
@@ -1,7 +1,8 @@
var _xDecs, _init_x;
export class A {
static [(_xDecs = dec, "_")];
static {
_xDecs = dec;
delete this._;
[_init_x] = babelHelpers.applyDecs2203R(this, [[_xDecs, 0, "x"]], []).e;
}
x = _init_x(this);
Expand Down
Expand Up @@ -91,8 +91,9 @@
const noop = () => fn => fn;
new class extends B {
constructor() {
var _initProto4, _noopDecs, _outerSuper, _A4;
_outerSuper = (...args) => super(...args);
let _ref;
var _initProto4, _noopDecs, _A4;
_ref = (_noopDecs = noop(log.push(super(7).method())), "_");
class A extends B {
constructor() {
log.push(_initProto4(super(8)).method());
Expand All @@ -103,8 +104,9 @@
noop() {}
}
_A4 = A;
babelHelpers.defineProperty(A, _ref, void 0);
(() => {
_noopDecs = noop(log.push(_outerSuper(7).method()));
delete _A4._;
[_initProto4] = babelHelpers.applyDecs2203R(_A4, [[dec, 2, "method"], [_noopDecs, 2, "noop"]], []).e;
})();
new A();
Expand All @@ -118,11 +120,11 @@
let log = [];
class A extends B {
constructor() {
let _ref;
let _ref2;
let key;
new (_ref = (key = _initProto5(super(9)).method(), log.push(key), key), class Dummy extends B {
new (_ref2 = (key = _initProto5(super(9)).method(), log.push(key), key), class Dummy extends B {
constructor() {
log.push((super(10), babelHelpers.defineProperty(this, _ref, void 0)).method());
log.push((super(10), babelHelpers.defineProperty(this, _ref2, void 0)).method());
}
})();
}
Expand All @@ -142,14 +144,15 @@
const noop = () => fn => fn;
class A extends B {
constructor() {
var _initProto7, _noopDecs2, _outerSuper2, _Dummy2;
new (_outerSuper2 = (...args) => super(...args), (_Dummy2 = class Dummy extends B {
let _ref3;
var _initProto7, _noopDecs2, _Dummy2;
new (_ref3 = (_noopDecs2 = noop(log.push(_initProto6(super(11)).method())), "_"), (_Dummy2 = class Dummy extends B {
constructor() {
log.push(_initProto7(super(12)).method());
}
noop() {}
}, (() => {
_noopDecs2 = noop(log.push(_initProto6(_outerSuper2(11)).method()));
}, babelHelpers.defineProperty(_Dummy2, _ref3, void 0), (() => {
delete _Dummy2._;
[_initProto7] = babelHelpers.applyDecs2203R(_Dummy2, [[_noopDecs2, 2, "noop"]], []).e;
})(), _Dummy2))();
}
Expand Down
@@ -1,28 +1,32 @@
let _ref;
var _initProto, _initClass, _classDecs, _methodDecs, _Foo2;
const dec = () => {};
_classDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
let _Foo;
var _a = /*#__PURE__*/new WeakMap();
_ref = (_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]], "_");
class Foo {
constructor() {
babelHelpers.classPrivateFieldInitSpec(this, _a, void _initProto(this));
}
method() {}
makeClass() {
var _barDecs, _init_bar, _outerThis, _Nested;
return _outerThis = this, (_Nested = class Nested {
let _ref2;
var _barDecs, _init_bar, _Nested;
return _ref2 = (_barDecs = babelHelpers.classPrivateFieldGet2(_a, this), "_"), (_Nested = class Nested {
constructor() {
babelHelpers.defineProperty(this, "bar", _init_bar(this));
}
}, (() => {
_barDecs = babelHelpers.classPrivateFieldGet2(_a, _outerThis);
}, babelHelpers.defineProperty(_Nested, _ref2, void 0), (() => {
delete _Nested._;
[_init_bar] = babelHelpers.applyDecs2203R(_Nested, [[_barDecs, 0, "bar"]], []).e;
})(), _Nested);
}
}
_Foo2 = Foo;
babelHelpers.defineProperty(Foo, _ref, void 0);
(() => {
_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
delete _Foo2._;
({
e: [_initProto],
c: [_Foo, _initClass]
Expand Down
@@ -1,8 +1,9 @@
var _initProto, _methodDecs, _initProto2, _methodDecs2;
const dec = () => {};
class A extends B {
static [(_methodDecs = deco, "_")];
static {
_methodDecs = deco;
delete this._;
[_initProto] = babelHelpers.applyDecs2203R(this, [[_methodDecs, 2, "method"]], []).e;
}
constructor() {
Expand All @@ -15,8 +16,9 @@ class A extends B {
method() {}
}
class C extends B {
static [(_methodDecs2 = deco, "_")];
static {
_methodDecs2 = deco;
delete this._;
[_initProto2] = babelHelpers.applyDecs2203R(this, [[_methodDecs2, 2, "method"]], []).e;
}
constructor() {
Expand Down
Expand Up @@ -94,11 +94,11 @@
const noop = () => fn => fn;
new class extends B {
constructor() {
var _initProto4, _noopDecs, _outerSuper;
_outerSuper = (...args) => super(...args);
var _initProto4, _noopDecs;
class A extends B {
static [(_noopDecs = noop(log.push(super(7).method())), "_")];
static {
_noopDecs = noop(log.push(_outerSuper(7).method()));
delete this._;
[_initProto4] = babelHelpers.applyDecs2203R(this, [[dec, 2, "method"], [_noopDecs, 2, "noop"]], []).e;
}
constructor() {
Expand Down Expand Up @@ -148,17 +148,18 @@
[_initProto6] = babelHelpers.applyDecs2203R(this, [[dec, 2, "method"]], []).e;
}
constructor() {
var _initProto7, _noopDecs2, _outerSuper2;
new (_outerSuper2 = (...args) => super(...args), class Dummy extends B {
var _initProto7, _noopDecs2;
new class Dummy extends B {
static [(_noopDecs2 = noop(log.push(_initProto6(super(11)).method())), "_")];
static {
_noopDecs2 = noop(log.push(_initProto6(_outerSuper2(11)).method()));
delete this._;
[_initProto7] = babelHelpers.applyDecs2203R(this, [[_noopDecs2, 2, "noop"]], []).e;
}
constructor() {
log.push(_initProto7(super(12)).method());
}
noop() {}
})();
}();
}
method() {
return this.a;
Expand Down
Expand Up @@ -3,8 +3,9 @@ const dec = () => {};
_classDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
let _Foo;
class Foo {
static [(_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]], "_")];
static {
_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
delete this._;
({
e: [_initProto],
c: [_Foo, _initClass]
Expand All @@ -13,10 +14,11 @@ class Foo {
#a = void _initProto(this);
method() {}
makeClass() {
var _barDecs, _init_bar, _outerThis;
return _outerThis = this, class Nested {
var _barDecs, _init_bar;
return class Nested {
static [(_barDecs = this.#a, "_")];
static {
_barDecs = _outerThis.#a;
delete this._;
[_init_bar] = babelHelpers.applyDecs2203R(this, [[_barDecs, 0, "bar"]], []).e;
}
bar = _init_bar(this);
Expand Down
@@ -1,7 +1,8 @@
var _xDecs, _init_x;
export class A {
static [(_xDecs = dec, "_")];
static {
_xDecs = dec;
delete this._;
[_init_x] = babelHelpers.applyDecs2301(this, [[_xDecs, 0, "x"]], []).e;
}
x = _init_x(this);
Expand Down

0 comments on commit d837c27

Please sign in to comment.