-
Notifications
You must be signed in to change notification settings - Fork 5
Fixing swc
specific bug with decorators and constructors
#430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Due to a difference with swc on how decorators are handled. Classes were constructed without decorators applied when called inside of `createX` static functions. This was solved by using `new this()` to construct instead. Fixed up some linting errors as well.
👇 Click on the image for a new way to code review
Legend |
There still are tests failing but I don't think they're related to the above bug. Here is a summary;
|
What was the reason for changing the tests? Should focus only on converting to |
The test changes was just fixing linting. |
Description
Due to a difference with swc on how decorators are handled. Classes were constructed without decorators applied when called inside of
createX
static functions. This was solved by usingnew this()
to construct instead.Fixed up some linting errors as well. Some
// @ts-ignore
lines were added without descriptions.Tasks
new this()
to construct the class inside ofcreateX
static methods.Final checklist