Throwing errors on mutating immutable bindings

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


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

> On 1 October 2014 16:09, Erik Arvidsson <erik.arvidsson at gmail.com> 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.


-- 
  Cheers,
  --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141002/f34d0208/attachment.html>


More information about the es-discuss mailing list