Andreas Rossberg (2014-10-02T14:06:59.000Z)
domenic at domenicdenicola.com (2014-10-15T18:44:21.369Z)
No, I was confused, again. :) To set that straight: - ES5 of course does _not_ require early errors for unbound variables. - So the good news is that V8 is currently correct. - The bad news is that requiring const assignments to be early errors would indeed be a big new hurdle for lazy compilation. And I now remember that I have brought this up myself at some meeting. :) So, yes, please let us remove the requirement to make const assignments an early error. A single, relatively unimportant diagnostics like that is not worth the considerable complication for VMs, especially given that all similar errors are not early errors either.