Skip to content

Commit 9b60f5f

Browse files
committed
test(transformer/async-to-generator): failing test for async arrow function in class static block
1 parent 4ac2e99 commit 9b60f5f

File tree

3 files changed

+19
-2
lines changed
  • tasks/transform_conformance

3 files changed

+19
-2
lines changed

tasks/transform_conformance/snapshots/oxc.snap.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
commit: 54a8389f
22

3-
Passed: 126/147
3+
Passed: 126/148
44

55
# All Passed:
66
* babel-plugin-transform-class-static-block
@@ -10,7 +10,6 @@ Passed: 126/147
1010
* babel-plugin-transform-optional-catch-binding
1111
* babel-plugin-transform-async-generator-functions
1212
* babel-plugin-transform-object-rest-spread
13-
* babel-plugin-transform-async-to-generator
1413
* babel-plugin-transform-exponentiation-operator
1514
* babel-plugin-transform-arrow-functions
1615
* babel-preset-typescript
@@ -47,6 +46,11 @@ after transform: SymbolId(0): [ReferenceId(0), ReferenceId(2), ReferenceId(6), R
4746
rebuilt : SymbolId(0): [ReferenceId(0), ReferenceId(2), ReferenceId(6), ReferenceId(10)]
4847

4948

49+
# babel-plugin-transform-async-to-generator (20/21)
50+
* class/static-block/input.js
51+
x Output mismatch
52+
53+
5054
# babel-plugin-transform-typescript (2/13)
5155
* class-property-definition/input.ts
5256
Unresolved references mismatch:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class C extends S {
2+
static {
3+
this.fn = async () => super.foo;
4+
}
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class C extends S {
2+
static {
3+
var _superprop_getFoo = () => super.foo;
4+
this.fn = babelHelpers.asyncToGenerator(function* () {
5+
return _superprop_getFoo();
6+
});
7+
}
8+
}

0 commit comments

Comments
 (0)