Skip to content
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

Typescript: function (this) is incorrectly transformed #563

Open
JavaScriptBach opened this issue Apr 4, 2024 · 1 comment
Open

Typescript: function (this) is incorrectly transformed #563

JavaScriptBach opened this issue Apr 4, 2024 · 1 comment

Comments

@JavaScriptBach
Copy link

I ran the parser on Typescript and found that function (this) gets incorrectly transformed to this =>. The result was invalid syntax.

this is a special case and should not be transformed; see https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function

@skovhus
Copy link
Owner

skovhus commented Apr 4, 2024

Thanks for reporting. Which transformer did you use?

Are you up for fixing the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants