Throwing errors on mutating immutable bindings

Andreas Rossberg rossberg at
Thu Oct 2 07:17:44 PDT 2014

On 2 October 2014 16:06, Andreas Rossberg <rossberg at> wrote:
> 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.

And to be sure, this is not just a problem that implementers can deal
with somehow. It might very well have measurable impact on startup
times for all larger JavaScript programs on all VMs. (AFAIK, nobody
has tried to implement and measure it, though, so we cannot be sure
either way.)


More information about the es-discuss mailing list