let and strict mode

Yehuda Katz wycats at gmail.com
Sun Nov 18 16:35:57 PST 2012


-- Yehuda Katz
(ph) 718.877.1325
On Nov 18, 2012 4:29 PM, "Brendan Eich" <brendan at mozilla.com> wrote:
>
> Yehuda Katz wrote:
>>
>> Question: does requiring strict mode for changes that break
compatibility with ES5 really address the 1JS concerns?
>
>
> Yes. 1JS is based on ES5 and so includes strict mode.

I was really asking the below question. I didn't remember that let was
reserved and therefore poses no new compatibility issues.

>
>
>> We're making usages of the identifier let that were valid in ES5 strict
invalid in ES6 strict. Doesn't that violate 1JS?
>
>
> No, you forget that ES5 strict reserves 'let' (and 'yield').

Indeed. Thanks for reminding me.

>
> /be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121118/c3750057/attachment.html>


More information about the es-discuss mailing list