Skip to content

Commit

Permalink
tests(transformer/async-to-generator): failing test for nested supers
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 16, 2024
1 parent 6b7a223 commit 6fa1b2f
Show file tree
Hide file tree
Showing 3 changed files with 43 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,20 +1,24 @@
commit: d20b314c

Passed: 85/95
Passed: 85/96

# All Passed:
* babel-plugin-transform-class-static-block
* babel-plugin-transform-nullish-coalescing-operator
* babel-plugin-transform-optional-catch-binding
* babel-plugin-transform-async-generator-functions
* babel-plugin-transform-async-to-generator
* babel-plugin-transform-exponentiation-operator
* babel-plugin-transform-arrow-functions
* babel-preset-typescript
* babel-plugin-transform-react-jsx-source
* regexp


# babel-plugin-transform-async-to-generator (14/15)
* super/nested/input.js
x Output mismatch


# babel-plugin-transform-typescript (2/9)
* class-property-definition/input.ts
Unresolved references mismatch:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const outer = {
value: 0,
async method() {
() => super.value;

const inner = {
value: 0,
async method() {
() => super.value;
}
};

() => super.value;
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const outer = {
value: 0,
method() {
var _superprop_getValue = () => super.value;

return babelHelpers.asyncToGenerator(function* () {
() => _superprop_getValue();

const inner = {
value: 0,
method() {
var _superprop_getValue2 = () => super.value;
return babelHelpers.asyncToGenerator(function* () {
() => _superprop_getValue2();
})();
}
};

() => _superprop_getValue();
})();
}
};

0 comments on commit 6fa1b2f

Please sign in to comment.