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 0cb33fa commit c5e1e86
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
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 c5e1e86

Please sign in to comment.