You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
When compiling a class with a method named
accessor
, the resulting code removes the method name.Input code
Config
Playground link
https://play.swc.rs/?version=1.3.38&code=H4sIAAAAAAAAA0vOSSwuVgjOz011BrOquRSAIDE5ObW4OL9IQxMqAAJFqSWlRXkK6h%2FmL1umbg0WruWq5UqGm%2BBfkpFahGxMcUliSWYySaYBACfgxeKQAAAA&config=H4sIAAAAAAAAA22PzQrCQAyE3yXnHrQHkb6DzyBhzZbV%2FQnJtljKvrvbUlsETxnmG8LMDE810M3AKEqyKJ1ixjd0kCcmNeI4QwNZq5VloFI1Sk%2B5JkjbU9tW6lNSgs6iV2oguOjstPwyKbCQ6oEw9p4WlBN7Gsnv6EXEd%2BNRNWIg%2FfXtH4%2FFjZip3sQHcnTdtaJFcefTZpRSy4f0GLYGdd864gLlKP19o7ctuI7%2BAI9bgSwoAQAA
Expected behavior
SWC correctly compiles classes with methods named
accessor
.Actual behavior
The compilation removes the name of methods named
accessor
.Version
1.3.38
Additional context
This is also a problem when using Axios:
https://github.com/axios/axios/blob/v1.x/lib/core/AxiosHeaders.js#L262
The text was updated successfully, but these errors were encountered: