Skip to content

Commit

Permalink
test(transformer/async-to-generator): failing test for async arrow fu…
Browse files Browse the repository at this point in the history
…nction in class static block
  • Loading branch information
overlookmotel committed Jan 14, 2025
1 parent 4ac2e99 commit 9b60f5f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
8 changes: 6 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: 126/147
Passed: 126/148

# All Passed:
* babel-plugin-transform-class-static-block
Expand All @@ -10,7 +10,6 @@ Passed: 126/147
* babel-plugin-transform-optional-catch-binding
* babel-plugin-transform-async-generator-functions
* babel-plugin-transform-object-rest-spread
* babel-plugin-transform-async-to-generator
* babel-plugin-transform-exponentiation-operator
* babel-plugin-transform-arrow-functions
* babel-preset-typescript
Expand Down Expand Up @@ -47,6 +46,11 @@ after transform: SymbolId(0): [ReferenceId(0), ReferenceId(2), ReferenceId(6), R
rebuilt : SymbolId(0): [ReferenceId(0), ReferenceId(2), ReferenceId(6), ReferenceId(10)]


# babel-plugin-transform-async-to-generator (20/21)
* class/static-block/input.js
x Output mismatch


# babel-plugin-transform-typescript (2/13)
* class-property-definition/input.ts
Unresolved references mismatch:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class C extends S {
static {
this.fn = async () => super.foo;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class C extends S {
static {
var _superprop_getFoo = () => super.foo;
this.fn = babelHelpers.asyncToGenerator(function* () {
return _superprop_getFoo();
});
}
}

0 comments on commit 9b60f5f

Please sign in to comment.