Repository navigation
Commit c68456c
committed
fix(core): reject leading decorators before exported at-sign constructs
`@dec export default @if` (and `@{`, `@for`, `@switch`, `@try`) skipped the
class check, so the decorator stayed on the stack and a later class took it.1 parent 66f2246 commit c68456c
3 files changed
Lines changed: 26 additions & 4 deletions
File tree
- .changeset
- packages/tsrx
- src
- tests/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3763 | 3763 | | |
3764 | 3764 | | |
3765 | 3765 | | |
| 3766 | + | |
| 3767 | + | |
| 3768 | + | |
| 3769 | + | |
| 3770 | + | |
3766 | 3771 | | |
3767 | 3772 | | |
3768 | 3773 | | |
| |||
3773 | 3778 | | |
3774 | 3779 | | |
3775 | 3780 | | |
3776 | | - | |
3777 | | - | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
3778 | 3791 | | |
3779 | 3792 | | |
3780 | 3793 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
593 | 601 | | |
594 | 602 | | |
595 | 603 | | |
| |||
0 commit comments