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
Arrow functions inside of getters use the
this
context of the surrounding context, rather than of the getter.Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.5.16&code=H4sIAAAAAAAAAy2MQQ6EIBAE7yT8oY%2BQbPQBhv3C%2FkEd1A3LJDAcNsa%2Fi%2BhterqrJo5Z8Pt%2Fxi8cdq2AhQSe2diWgERSUoSxcG%2FIuuXh%2Bh8vrY56aTU1hY%2BVb56uwq3oe%2BSVS5gxEiQVurccqAu8GB8vpXsoO5x3oIfBiwAAAA%3D%3D&config=H4sIAAAAAAAAA2WPSw7CMAxE95wi8potLLgDh7CCW6XKT3aQiKrenTSfAmJj2TPPHnk9KQWLaLiptbRliMhCfMxFkewTvooCpB2KZhMTnIe7yG5NaIWqtDUHEvJMqW7JpeNgQxAaeNec8WbK34E6uMgk8gvuKPrZ0n9cLeDC41nd%2FknKkVr%2BFT7QSDsug5H72Gx3tzcE4cPeFgEAAA%3D%3D
SWC Info output
No response
Expected behavior
This is bound inside of the getter
Actual behavior
This is bound outside of the getter
Version
1.5.16 (repros on every version I tried, including all of 1.5.x)
Additional context
No response
The text was updated successfully, but these errors were encountered: