SWC compiler allows const variable re-assignment

I was trying out the SWC playground and I am getting no errors when I reassign a const variable. PS: when the function is not arrow function or when the code is out of that function, it throws the appropriate error.
1 Reply
☘
3y ago
submit it as an issue or discussion to the main repo
Want results from more Discord servers?
Add your server