Skip to content

Commit

Permalink
test(transformer/class-properties): add static super tagged expressio…
Browse files Browse the repository at this point in the history
…n test
  • Loading branch information
Dunqing committed Dec 17, 2024
1 parent 1314c97 commit 204f753
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/transform_conformance/snapshots/oxc.snap.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
commit: 54a8389f

Passed: 111/125
Passed: 112/126

# All Passed:
* babel-plugin-transform-class-static-block
Expand All @@ -16,7 +16,7 @@ Passed: 111/125
* regexp


# babel-plugin-transform-class-properties (12/14)
# babel-plugin-transform-class-properties (13/15)
* typescript/optional-call/input.ts
Symbol reference IDs mismatch for "X":
after transform: SymbolId(0): [ReferenceId(0), ReferenceId(2), ReferenceId(6), ReferenceId(11), ReferenceId(16)]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class Outer {
A = () => {};
static B = () => {
super.A``;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var _Outer;
class Outer {
constructor() {
babelHelpers.defineProperty(this, "A", () => {});
}
}
_Outer = Outer;
babelHelpers.defineProperty(Outer, "B", () => {
babelHelpers.superPropGet(_Outer, "A", _Outer)``;
});

0 comments on commit 204f753

Please sign in to comment.