Closed ytoune closed 1 year ago
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);
}
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
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