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
**Description:**
Following development should follow babel/babel#16261 to avoid separate `WeakMap` for each individual private method
**Related issue:**
- Closes#8948.
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 translate to es5, privateMethod use keyword such as '#switch' '#new' will translate to such
WeakSet and function name are both _switch ,will cause
TypeError: _class_private_method_get(...).call is not a function
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.3.100&code=H4sIAAAAAAAAA0vOSSwuVghJLS5xzimu5lIAgrT8fA1NCBMESjIyi%2FWUkxKLNDRBXDTx4vLMkuQMJKlaMAkXR5iTnJ9XnJ%2BTqpeTn66hBJVXSE7MyUlNUdKEaoXoBduFSyNQEl1XLVdqRUF%2BUYlCNdQfQINyUksUEhVsFfJSy2G%2B40rUA3sNAKLByCDzAAAA&config=H4sIAAAAAAAAA1WPSw7DIAwF9zkF8rrbdtE79BAWdSIifrKJVBTl7iUE0maH3xsz8jooBbNoeKq1PMsQkYX4nEsi2Sf8lARIOxTNJia49XaWvRrRCtVoOxpIyBOluiX3hoMNQajjLXPGmzH%2FC3VwkUnkCu4o%2BsnSVTc0JbjwXmrZDkk50qF%2FwA%2FqsvNjMPLqm4kXGrYvhlQioBQBAAA%3D
SWC Info output
No response
Expected behavior
no runtime error
Actual behavior
Version
1.5.5
Additional context
No response
The text was updated successfully, but these errors were encountered: