Skip to content

Commit

Permalink
output test copy exec test
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 18, 2024
1 parent c6dc254 commit ba041f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
class Outer {
A = () => {};
static B = () => {
super.A`oxc`;
};
class S {
static method() {
return this;
}
}

class C extends S {
static prop = super.method`xyz`;
}

expect(C.prop).toBe(C);
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
var _Outer;
class Outer {
constructor() {
babelHelpers.defineProperty(this, "A", () => {});
var _C;

class S {
static method() {
return this;
}
}
_Outer = Outer;
babelHelpers.defineProperty(Outer, "B", () => {
babelHelpers.superPropGet(_Outer, "A", _Outer).bind(_Outer)`oxc`;
});

class C extends S {}
_C = C;
babelHelpers.defineProperty(C, "prop", babelHelpers.superPropGet(_C, "method", _C).bind(_C)`xyz`);

expect(C.prop).toBe(C);

0 comments on commit ba041f3

Please sign in to comment.