-
-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(transformer/async-to-generator): failing test for async arrow fu…
…nction in class static block
- Loading branch information
1 parent
4ac2e99
commit 9b60f5f
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...tests/babel-plugin-transform-async-to-generator/test/fixtures/class/static-block/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class C extends S { | ||
static { | ||
this.fn = async () => super.foo; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ests/babel-plugin-transform-async-to-generator/test/fixtures/class/static-block/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
} | ||
} |