-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cannot assign to private field with loose=true #6581
Comments
this is in version 1.2.155 and above version 1.2.154 constructor(){
_classPrivateFieldInit(this, _hoge, {
writable: true,
value: void 0
});
_classPrivateFieldSet(this, _hoge, 42);
} |
swc/crates/swc_ecma_transforms_base/src/helpers/_class_private_field_loose_base.js Lines 1 to 7 in 6008995
|
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Unable to assign to private field if loose in config is set to true
Input code
Config
Playground link
https://play.swc.rs/?version=1.3.21&code=H4sIAAAAAAAAA0vOSSwuVvDIT09VqOblUgAC5Qwgx0ohrzQ3KbUIIpScn1dcUlSaXJJfpKEJUwcCJRmZxXpgDQq2CiZGEIlaXq5aAOAmk3JXAAAA&config=H4sIAAAAAAAAA0WOTQoCMQyF75L1LNSFYO%2FgIULNDJX%2BkWTAUnp321pw9%2FLey5dUeIsFUyEjC%2FFQUqLiBwxoySSWXVbYQKVbyie1rpEP0t4guV2uj576lIR%2B%2BQbBRbeXgbIpZCYRMDt6GRHGw9MaW0eF9DqHUee1ibxD%2BzPWnpPnKs4XviYz9TO2AAAA
Expected behavior
compiled code might look like below
Actual behavior
compiled code
this behaves like
Version
1.3.21
Additional context
No response
The text was updated successfully, but these errors were encountered: