-
-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(transformer/arrow-functions): add decorators to test (#8393)
Follow-on after #8382. Add decorators to the test fixture.
- Loading branch information
1 parent
3dad85e
commit 8d2176e
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...gin-transform-async-to-generator/test/fixtures/super/outer-super-in-nested-class/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 |
---|---|---|
@@ -1,12 +1,20 @@ | ||
class Outer extends OuterSuper { | ||
constructor() { | ||
@(super().decorate) | ||
class Inner extends super() { | ||
@(super().decorate) | ||
[super()] = 1; | ||
|
||
@(super().decorate) | ||
static [super()] = 2; | ||
|
||
@(super().decorate) | ||
[super()]() {} | ||
|
||
@(super().decorate) | ||
static [super()]() {} | ||
} | ||
|
||
let fn = async () => this; | ||
} | ||
} |
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