Rationale for const not throwing in sloppy mode?
Allen Wirfs-Brock
allen at wirfs-brock.com
Tue Nov 25 22:30:13 PST 2014
On Nov 25, 2014, at 10:07 PM, Axel Rauschmayer wrote:
> Given that `const` is a new feature – shouldn’t an exception be thrown in non-strict mode if a `const` variable is being changed?
yes it should see https://github.com/tc39/tc39-notes/blob/master/es6/2014-11/nov-18.md#43-assignment-to-a-const-static-error
>
> --
> Dr. Axel Rauschmayer
> axel at rauschma.de
> rauschma.de
>
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141125/01e642c9/attachment.html>
More information about the es-discuss
mailing list