Throwing errors on mutating immutable bindings

Mark Miller erights at
Thu Oct 2 01:45:45 PDT 2014

On Thu, Oct 2, 2014 at 12:22 AM, Andreas Rossberg <rossberg at>

> On 1 October 2014 16:09, Erik Arvidsson <erik.arvidsson at> wrote:
> > The static error is problematic. I'm pretty sure that engines that do
> lazy
> > parsing of functions is not going to report static errors before doing a
> > full parse of the function.
> Well, it is no harder than reporting reference errors for unbound
> variables in strict mode, which is already required for ES5.
> ...However, at least V8 does not report that correctly either, as soon
> as lazy parsing kicks in.

Hi Andreas, can you show an example where v8 observably does the wrong
thing here? Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list