Skip to content

Commit

Permalink
test(transformer/arrow-functions): add decorators to test (#8393)
Browse files Browse the repository at this point in the history
Follow-on after #8382. Add decorators to the test fixture.
  • Loading branch information
overlookmotel committed Jan 10, 2025
1 parent 3dad85e commit 8d2176e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@ class Outer extends OuterSuper {
constructor() {
var _this;

@((super(), _this = this).decorate)
class Inner extends (super(), _this = this) {
@((super(), _this = this).decorate)
[(super(), _this = this)] = 1;

@((super(), _this = this).decorate)
static [(super(), _this = this)] = 2;

@((super(), _this = this).decorate)
[(super(), _this = this)]() {}

@((super(), _this = this).decorate)
static [(super(), _this = this)]() {}
}

Expand All @@ -17,6 +25,5 @@ class Outer extends OuterSuper {
return _ref.apply(this, arguments);
};
}();

}
}
}

0 comments on commit 8d2176e

Please sign in to comment.