<script>
let foo = 0;
let bar = 0;
</script>
{() => foo = 1}
{bar = 1}
The vars in the compiler output reports foo as reassigned, but does not report bar as ever reassigned. I don't know what effects this might have on the compiled output, but for the ESLint plugin with prefer-const enabled, it does result in bar being erroneously turned into a const.